]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb72e7b65e72c74393618410d3ba4b1bd2597bac
treec4be942bdbe91504ad387ac5d3d899f9f1c2acc0
parent7dfa8532cd6b25dc2c54bdf922256becc7434788
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