summaryrefslogtreecommitdiff
path: root/Documentation/networking/devlink-trap-netdevsim.rst
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2019-08-28 09:34:47 +0800
committerDavid S. Miller <davem@davemloft.net>2019-08-28 16:16:27 -0700
commit95fb8bb3181bbe1ee87c95e91dff94f74f148c33 (patch)
treec57aaf5b4a5d708030b5631c838663a1a7641fcc /Documentation/networking/devlink-trap-netdevsim.rst
parent8e4a2adcedac01c4269ae104824b9078870000b1 (diff)
net: phy: force phy suspend when calling phy_stop
Some ethernet drivers may call phy_start() and phy_stop() from ndo_open() and ndo_close() respectively. When network cable is unconnected, and operate like below: step 1: ifconfig ethX up -> ndo_open -> phy_start ->start autoneg, and phy is no link. step 2: ifconfig ethX down -> ndo_close -> phy_stop -> just stop phy state machine. This patch forces phy suspend even phydev->link is off. Signed-off-by: Jian Shen <shenjian15@huawei.com> Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/devlink-trap-netdevsim.rst')
0 files changed, 0 insertions, 0 deletions