aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-09-28 22:55:08 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-10-05 14:03:17 +0200
commit130d5056c189454ebeec4fe91bc04da050431238 (patch)
tree40679fb6bfc738c6a04660fe747c6c0fac0130db /target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch
parent2a457dcd7292d9995f8672bc12d70e8a7267021a (diff)
downloadupstream-130d5056c189454ebeec4fe91bc04da050431238.tar.gz
upstream-130d5056c189454ebeec4fe91bc04da050431238.tar.bz2
upstream-130d5056c189454ebeec4fe91bc04da050431238.zip
generic: add patch for GPON-ONU-34-20BI quirk
Backport patch merged upstream adding quirk for SFP GPON-ONU-34-20BI. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 86dadeba482e2ed41f1ccc95fc7739d85a5709c0)
Diffstat (limited to 'target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch')
-rw-r--r--target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch b/target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch
index 10af22e52e..e7372b31d1 100644
--- a/target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch
+++ b/target/linux/generic/hack-5.15/790-SFP-GE-T-ignore-TX_FAULT.patch
@@ -26,7 +26,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
-@@ -383,6 +383,11 @@ static const struct sfp_quirk sfp_quirks
+@@ -390,6 +390,11 @@ static const struct sfp_quirk sfp_quirks
.modes = sfp_quirk_2500basex,
.fixup = sfp_fixup_ignore_tx_fault,
}, {
@@ -38,7 +38,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
// Lantech 8330-262D-E can operate at 2500base-X, but
// incorrectly report 2500MBd NRZ in their EEPROM
.vendor = "Lantech",
-@@ -2312,7 +2317,8 @@ static void sfp_sm_main(struct sfp *sfp,
+@@ -2319,7 +2324,8 @@ static void sfp_sm_main(struct sfp *sfp,
* or t_start_up, so assume there is a fault.
*/
sfp_sm_fault(sfp, SFP_S_INIT_TX_FAULT,
@@ -48,7 +48,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
} else if (event == SFP_E_TIMEOUT || event == SFP_E_TX_CLEAR) {
init_done:
sfp->sm_phy_retries = R_PHY_RETRY;
-@@ -2535,10 +2541,12 @@ static void sfp_check_state(struct sfp *
+@@ -2542,10 +2548,12 @@ static void sfp_check_state(struct sfp *
mutex_lock(&sfp->st_mutex);
state = sfp_get_state(sfp);
changed = state ^ sfp->state;