]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: correctly report serdes link failure
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 7 Jun 2022 11:28:52 +0000 (12:28 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Jun 2022 03:58:30 +0000 (20:58 -0700)
commitb9dedfbfa62e6eeb3e7a5bff883ad1730a19936f
tree11bd8d48e3cad389a061f3dff88b8d86f0d4389f
parent6cff7708988020c15760a6a09499d8d73b6a7174
net: dsa: mv88e6xxx: correctly report serdes link failure

Phylink wants to know if the link has dropped since the last time state
was retrieved, and the BMSR gives us that. Read the BMSR and use it when
deciding the link state. Fill in the an_complete member as well for the
emulated PHY state.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/serdes.c