diff options
author | David S. Miller <davem@davemloft.net> | 2014-06-21 15:50:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-21 15:50:45 -0700 |
commit | a705a906c617b1c389729829c0a160f179d043bf (patch) | |
tree | 268100006a23483618c21fc14dd2aff0c728488b /include/linux/phy.h | |
parent | 916c1689a09bc1ca81f2d7a34876f8d35aadd11b (diff) | |
parent | 13a56b4493259e6b020dbcf6a76b2bef479f3edf (diff) |
Merge branch 'at803x'
Daniel Mack says:
====================
Handle stuck TX queue bug in AT8030 PHY
These three small patches circument a hardware bug in AT8030 PHYs that
leads to stuck TX FIFO queues when the link goes away while there are
pending patches in der outbound queue. This bug has been confirmed by
the vendor, and their only proposed fix is to apply a hardware reset
every time the link goes down.
v1 -> v2:
* Rename phy device callback from adjust_state to link_change_notify
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 864ddafad8cc..68041446c450 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -536,6 +536,15 @@ struct phy_driver { /* See set_wol, but for checking whether Wake on LAN is enabled. */ void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol); + /* + * Called to inform a PHY device driver when the core is about to + * change the link state. This callback is supposed to be used as + * fixup hook for drivers that need to take action when the link + * state changes. Drivers are by no means allowed to mess with the + * PHY device structure in their implementations. + */ + void (*link_change_notify)(struct phy_device *dev); + struct device_driver driver; }; #define to_phy_driver(d) container_of(d, struct phy_driver, driver) |