]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: phy: add "has_fixups" boolean property
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 12 Feb 2014 01:27:41 +0000 (17:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 00:08:20 +0000 (19:08 -0500)
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>
drivers/net/phy/phy_device.c
include/linux/phy.h

index 7c184208ed4dc901239a1a0b6d70b6b87165cef2..c2d778d064051b4e9fb5f436ce8ddadf3bf32165 100644 (file)
@@ -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);
index ef7fa11311458ba507aa6d2ec7c05cfd1bb74005..42f1bc7eaeb00ab046853e0df2cb7d343086810e 100644 (file)
@@ -350,6 +350,7 @@ struct phy_device {
        struct phy_c45_device_ids c45_ids;
        bool is_c45;
        bool is_internal;
+       bool has_fixups;
 
        enum phy_state state;