aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.15/775-net-sfp-change-HALNy-to-ignore-hardware-pins.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/pending-5.15/775-net-sfp-change-HALNy-to-ignore-hardware-pins.patch')
-rw-r--r--target/linux/generic/pending-5.15/775-net-sfp-change-HALNy-to-ignore-hardware-pins.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/target/linux/generic/pending-5.15/775-net-sfp-change-HALNy-to-ignore-hardware-pins.patch b/target/linux/generic/pending-5.15/775-net-sfp-change-HALNy-to-ignore-hardware-pins.patch
deleted file mode 100644
index 7aa29cd722..0000000000
--- a/target/linux/generic/pending-5.15/775-net-sfp-change-HALNy-to-ignore-hardware-pins.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 32a59a1c5dc8f6fa755bab9a5f9751fdb66bb234 Mon Sep 17 00:00:00 2001
-From: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
-Date: Fri, 26 Aug 2022 08:48:25 +0100
-Subject: [PATCH 6/6] net: sfp: change HALNy to ignore hardware pins
-
-Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
----
- drivers/net/phy/sfp.c | 14 +-------------
- 1 file changed, 1 insertion(+), 13 deletions(-)
-
---- a/drivers/net/phy/sfp.c
-+++ b/drivers/net/phy/sfp.c
-@@ -321,21 +321,9 @@ static void sfp_fixup_ignore_tx_fault(st
- sfp->tx_fault_ignore = true;
- }
-
--static void sfp_fixup_inverted_los(struct sfp *sfp)
--{
-- const __be16 los_inverted = cpu_to_be16(SFP_OPTIONS_LOS_INVERTED);
-- const __be16 los_normal = cpu_to_be16(SFP_OPTIONS_LOS_NORMAL);
--
-- sfp->id.ext.options &= ~los_normal;
-- sfp->id.ext.options |= los_inverted;
--}
--
- static void sfp_fixup_halny_gsfp(struct sfp *sfp)
- {
-- /* LOS is inverted */
-- sfp_fixup_inverted_los(sfp);
-- /* TX fault might be inverted, but we don't know for certain. */
-- sfp_fixup_ignore_tx_fault(sfp);
-+ sfp->state_ignore_hw_mask |= SFP_F_TX_FAULT | SFP_F_LOS;
- }
-
- static void sfp_quirk_2500basex(const struct sfp_eeprom_id *id,