X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fbackport-5.4%2F723-v5.5-net-sfp-handle-module-remove-outside-state-machine.patch;h=62cdb8a6ce671a5739f2231e425447e31849ba72;hb=7c47f6601d6da216b811a00fd6dcc5e1a96c2e09;hp=542aeaea772763d599bd81b7829a4d8578b8e21c;hpb=c16517d26de30c90dabce1e456615fd7fbdce07c;p=oweals%2Fopenwrt.git diff --git a/target/linux/generic/backport-5.4/723-v5.5-net-sfp-handle-module-remove-outside-state-machine.patch b/target/linux/generic/backport-5.4/723-v5.5-net-sfp-handle-module-remove-outside-state-machine.patch index 542aeaea77..62cdb8a6ce 100644 --- a/target/linux/generic/backport-5.4/723-v5.5-net-sfp-handle-module-remove-outside-state-machine.patch +++ b/target/linux/generic/backport-5.4/723-v5.5-net-sfp-handle-module-remove-outside-state-machine.patch @@ -14,7 +14,7 @@ Signed-off-by: Russell King --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c -@@ -1500,6 +1500,14 @@ static void sfp_sm_device(struct sfp *sf +@@ -1565,6 +1565,14 @@ static void sfp_sm_device(struct sfp *sf */ static void sfp_sm_module(struct sfp *sfp, unsigned int event) { @@ -29,7 +29,7 @@ Signed-off-by: Russell King switch (sfp->sm_mod_state) { default: if (event == SFP_E_INSERT && sfp->attached) { -@@ -1509,9 +1517,7 @@ static void sfp_sm_module(struct sfp *sf +@@ -1574,9 +1582,7 @@ static void sfp_sm_module(struct sfp *sf break; case SFP_MOD_PROBE: @@ -40,7 +40,7 @@ Signed-off-by: Russell King int val = sfp_sm_mod_probe(sfp); if (val == 0) -@@ -1533,10 +1539,6 @@ static void sfp_sm_module(struct sfp *sf +@@ -1598,10 +1604,6 @@ static void sfp_sm_module(struct sfp *sf /* fallthrough */ case SFP_MOD_PRESENT: case SFP_MOD_ERROR: