* [PATCH] net/e1000/base: check PHY link status read
@ 2026-09-14 10:10 Artem Novikov
0 siblings, 0 replies; only message in thread
From: Artem Novikov @ 2026-09-14 10:10 UTC (permalink / raw)
To: dev; +Cc: naa, rrv, lvc-project, bruce.richardson, stable
The Kumeran lock loss workaround checks the PHY link state before
reading the Kumeran diagnostic register. The PHY status read can fail,
but the returned error is ignored and the link output is used
immediately.
Propagate the PHY read error before using the link state so the
workaround does not continue with an invalid status.
Fixes: 5a32a257f957 ("e1000: more NICs in base driver")
Cc: stable@dpdk.org
Signed-off-by: Artem Novikov <naa@amicon.ru>
---
drivers/net/intel/e1000/base/e1000_ich8lan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/intel/e1000/base/e1000_ich8lan.c b/drivers/net/intel/e1000/base/e1000_ich8lan.c
index 0290a7dcb4..816a361fa9 100644
--- a/drivers/net/intel/e1000/base/e1000_ich8lan.c
+++ b/drivers/net/intel/e1000/base/e1000_ich8lan.c
@@ -5548,6 +5548,8 @@ STATIC s32 e1000_kmrn_lock_loss_workaround_ich8lan(struct e1000_hw *hw)
* stability
*/
ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link);
+ if (ret_val)
+ return ret_val;
if (!link)
return E1000_SUCCESS;
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-14 11:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 10:10 [PATCH] net/e1000/base: check PHY link status read Artem Novikov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.