Skip to content

Commit

Permalink
net: phy: add "has_fixups" boolean property
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Feb 13, 2014
1 parent 3d055d8 commit b0ae009
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/phy/phy_device.c
Original file line number Diff line number Diff line change
@@ -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);
1 change: 1 addition & 0 deletions include/linux/phy.h
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit b0ae009

Please sign in to comment.