]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: phy: smsc: add support for edpd tunable
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 2 Apr 2023 15:16:56 +0000 (17:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2023 09:08:43 +0000 (10:08 +0100)
commit657de1cf258dbe2489906c81bd91e4af536de255
tree105e2f36d7e84de69ed1c680b53a12a606084546
parent1ce658693b089ee753260eae78a3ea572bc4b3fb
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.

v2:
- consider that phylib core holds phydev->lock when calling the
  phy tunable hooks

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c
include/linux/smscphy.h