]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: bcm84881: clear settings on link down
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 23 Apr 2020 07:57:42 +0000 (08:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 22:55:35 +0000 (15:55 -0700)
commit4e8258f847e70e3b585ae4e9b54730ad87bb16d6
treee2410bcd5257fe8cb1ff1b21f7e985a19f77695d
parenteabe12a42d6e42ba3a013e6f797007d54e5e9918
net: phy: bcm84881: clear settings on link down

Clear the link partner advertisement, speed, duplex and pause when
the link goes down, as other phylib drivers do.  This avoids the
stale link partner, speed and duplex settings being reported via
ethtool.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm84881.c