net: sfp: re-implement ignoring the hardware TX_FAULT signal
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 3 Oct 2023 13:34:24 +0000 (14:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Oct 2023 01:05:06 +0000 (18:05 -0700)
commite184e8609f8c1cd9fef703f667245b6ebd89c2ed
tree70de9d945c2155f52fc00f0f039e74e336df5bf4
parent98bdeae9502b90822a9666efac76373bfa9c2ad1
net: sfp: re-implement ignoring the hardware TX_FAULT signal

Re-implement how we ignore the hardware TX_FAULT signal. Rather than
having a separate boolean for this, use a bitmask of the hardware
signals that we wish to ignore. This gives more flexibility in the
future to ignore other signals such as RX_LOS.

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