]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell-88x2222: check that link is operational
authorIvan Bornyakov <i.bornyakov@metrotek.ru>
Tue, 13 Apr 2021 20:54:50 +0000 (23:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2021 19:56:44 +0000 (12:56 -0700)
commit5fad7188fa71cefc436ec646d0cd312d88668143
tree63ccfacc2df415dea64de0cd4a2537347804ff17
parent9ce74f5ed413db982be251c575564baa0280fe0a
net: phy: marvell-88x2222: check that link is operational

Some SFP modules uses RX_LOS for link indication. In such cases link
will be always up, even without cable connected. RX_LOS changes will
trigger link_up()/link_down() upstream operations. Thus, check that SFP
link is operational before actual read link status.

If there is no SFP cage connected to the tranciever, check only PMD
Recieve Signal Detect register.

Signed-off-by: Ivan Bornyakov <i.bornyakov@metrotek.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell-88x2222.c