OSDN Git Service

net: phylink: only restart AN if the link mode is using in-band AN
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 24 Jun 2020 11:30:04 +0000 (12:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 23:02:24 +0000 (16:02 -0700)
commit575691b309291c5163cca5877ec159120a68774d
treec4be942bdbe91504ad387ac5d3d899f9f1c2acc0
parenta5440cbecd99e2564504572b39bc70ea7addfc25
net: phylink: only restart AN if the link mode is using in-band AN

If we are not using in-band autonegotiation, there is no point passing
the request to restart autonegotiation on to the driver.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c