|
@@ -441,9 +441,19 @@ phy_interface_show(struct device *dev, struct device_attribute *attr, char *buf)
|
|
|
}
|
|
|
static DEVICE_ATTR_RO(phy_interface);
|
|
|
|
|
|
+static ssize_t
|
|
|
+phy_has_fixups_show(struct device *dev, struct device_attribute *attr, char *buf)
|
|
|
+{
|
|
|
+ struct phy_device *phydev = to_phy_device(dev);
|
|
|
+
|
|
|
+ return sprintf(buf, "%d\n", phydev->has_fixups);
|
|
|
+}
|
|
|
+static DEVICE_ATTR_RO(phy_has_fixups);
|
|
|
+
|
|
|
static struct attribute *mdio_dev_attrs[] = {
|
|
|
&dev_attr_phy_id.attr,
|
|
|
&dev_attr_phy_interface.attr,
|
|
|
+ &dev_attr_phy_has_fixups.attr,
|
|
|
NULL,
|
|
|
};
|
|
|
ATTRIBUTE_GROUPS(mdio_dev);
|