diff options
| author | Florian Fainelli <f.fainelli@gmail.com> | 2014-02-11 20:27:41 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-02-12 19:08:20 -0500 |
| commit | b0ae009f3dc14643e56972cfc08c060dd72cc24d (patch) | |
| tree | 9a105ceae7dfe8544c15b7f106a9b696e4d5f156 | |
| parent | 3d055d8d1c24093bdd40e000570a59b841c2bb0b (diff) | |
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>
| -rw-r--r-- | drivers/net/phy/phy_device.c | 1 | ||||
| -rw-r--r-- | include/linux/phy.h | 1 |
2 files changed, 2 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) | |||
| 139 | mutex_unlock(&phy_fixup_lock); | 139 | mutex_unlock(&phy_fixup_lock); |
| 140 | return err; | 140 | return err; |
| 141 | } | 141 | } |
| 142 | phydev->has_fixups = true; | ||
| 142 | } | 143 | } |
| 143 | } | 144 | } |
| 144 | mutex_unlock(&phy_fixup_lock); | 145 | mutex_unlock(&phy_fixup_lock); |
diff --git a/include/linux/phy.h b/include/linux/phy.h index ef7fa1131145..42f1bc7eaeb0 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
| @@ -350,6 +350,7 @@ struct phy_device { | |||
| 350 | struct phy_c45_device_ids c45_ids; | 350 | struct phy_c45_device_ids c45_ids; |
| 351 | bool is_c45; | 351 | bool is_c45; |
| 352 | bool is_internal; | 352 | bool is_internal; |
| 353 | bool has_fixups; | ||
| 353 | 354 | ||
| 354 | enum phy_state state; | 355 | enum phy_state state; |
| 355 | 356 | ||
