]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: report error on failure to read sfp soft status
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 17 Dec 2019 13:50:29 +0000 (13:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2019 01:26:07 +0000 (17:26 -0800)
commit37742631860a847737a51d5794bcf2bfbed9509c
tree628fef0b7ceb4e4da3eaf73342504a077e004e3e
parent0b16c43e689cc7b08cf8ee125f298e0bfde9ad9b
net: sfp: report error on failure to read sfp soft status

Report a rate-limited error if we fail to read the SFP soft status,
and preserve the current status in that case. This avoids I2C bus
errors from triggering a link flap.

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