summaryrefslogtreecommitdiff
path: root/net/Kconfig
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2020-05-10 22:12:30 +0300
committerJakub Kicinski <kuba@kernel.org>2020-05-10 22:27:31 +0300
commita68a813836e12b15715d9101309899123c250302 (patch)
treefab31149fd53722c3c1f3157e115513b08d5d146 /net/Kconfig
parentb9f96423bba6155cdf54f96f0b1e43fa6d0b0b74 (diff)
downloadlinux-a68a813836e12b15715d9101309899123c250302.tar.xz
net: phy: Add cable test support to state machine
Running a cable test is desruptive to normal operation of the PHY and can take a 5 to 10 seconds to complete. The RTNL lock cannot be held for this amount of time, and add a new state to the state machine for running a cable test. The driver is expected to implement two functions. The first is used to start a cable test. Once the test has started, it should return. The second function is called once per second, or on interrupt to check if the cable test is complete, and to allow the PHY to report the status. v2: Rename phy_cable_test_abort to phy_abort_cable_test Return different extack when already running test Use phy_init_hw() to reset the PHY Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/Kconfig')
0 files changed, 0 insertions, 0 deletions