aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <[email protected]>2023-04-03 10:08:43 +0100
committerDavid S. Miller <[email protected]>2023-04-03 10:08:43 +0100
commit56b029ddac8eebdeb3d8a15c8aed71a1c62e4924 (patch)
tree6c6c0384660db8f9ea0fbe9f579a2750d19d634e /include
parent858e5b06409f65d09dc60e32432e4b8e12e4dba0 (diff)
parent3c4c3b3e6d414c50f6858f027a2ca2206e1ce583 (diff)
Merge branch 'phy-smsc-edpd-tunable'
Heiner Kallweit says: ==================== net: phy: smsc: add support for edpd tunable This adds support for the EDPD PHY tunable. Per default EDPD is disabled in interrupt mode, the tunable can be used to override this, e.g. if the link partner doesn't use EDPD. The interval to check for energy can be chosen between 1000ms and 2000ms. Note that this value consists of the 1000ms phylib interval for state machine runs plus the time to wait for energy being detected. ==================== Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/smscphy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/smscphy.h b/include/linux/smscphy.h
index 80f37c1dba58..e1c88627755a 100644
--- a/include/linux/smscphy.h
+++ b/include/linux/smscphy.h
@@ -32,6 +32,10 @@ int smsc_phy_config_intr(struct phy_device *phydev);
irqreturn_t smsc_phy_handle_interrupt(struct phy_device *phydev);
int smsc_phy_config_init(struct phy_device *phydev);
int lan87xx_read_status(struct phy_device *phydev);
+int smsc_phy_get_tunable(struct phy_device *phydev,
+ struct ethtool_tunable *tuna, void *data);
+int smsc_phy_set_tunable(struct phy_device *phydev,
+ struct ethtool_tunable *tuna, const void *data);
int smsc_phy_probe(struct phy_device *phydev);
#endif /* __LINUX_SMSCPHY_H__ */