net: sfp: improve Nokia GPON sfp fixup
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 3 Oct 2023 13:34:29 +0000 (14:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Oct 2023 01:05:06 +0000 (18:05 -0700)
commit5ffe330e40bdfad9c49a615c54d2d89343b2f08a
treeed0b9b55b96f2eeaa8234267db259b5d1edd1275
parente184e8609f8c1cd9fef703f667245b6ebd89c2ed
net: sfp: improve Nokia GPON sfp fixup

Improve the Nokia GPON fixup - we need to ignore not only the hardware
LOS signal, but also the software implementation as well. Do this by
using the new state_ignore_mask to indicate that we should ignore not
only the hardware RX_LOS signal, and also clear the LOS bits in the
option field.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/E1qnfXh-008UDe-F9@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c