summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy_device.c
diff options
context:
space:
mode:
authorFlorian Fainelli2014-02-12 02:27:41 +0100
committerDavid S. Miller2014-02-13 01:08:20 +0100
commitb0ae009f3dc14643e56972cfc08c060dd72cc24d (patch)
tree9a105ceae7dfe8544c15b7f106a9b696e4d5f156 /drivers/net/phy/phy_device.c
parentnet: phy: expose PHY device interface mode (diff)
downloadkernel-qcow2-linux-b0ae009f3dc14643e56972cfc08c060dd72cc24d.tar.gz
kernel-qcow2-linux-b0ae009f3dc14643e56972cfc08c060dd72cc24d.tar.xz
kernel-qcow2-linux-b0ae009f3dc14643e56972cfc08c060dd72cc24d.zip
net: phy: add "has_fixups" boolean property
Add a boolean property which indicates if the PHY has had any fixup routine ran on it. We are later going to use that boolean to expose it as a sysfs property to help troubleshooting. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy_device.c')
-rw-r--r--drivers/net/phy/phy_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 7c184208ed4d..c2d778d06405 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -139,6 +139,7 @@ static int phy_scan_fixups(struct phy_device *phydev)
mutex_unlock(&phy_fixup_lock);
return err;
}
+ phydev->has_fixups = true;
}
}
mutex_unlock(&phy_fixup_lock);