All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net 0/3] amd-xgbe: RX adaptation and PHY handling fixes
@ 2026-03-05  4:29 Raju Rangoju
  2026-03-05  4:29 ` [PATCH v2 net 1/3] amd-xgbe: fix link status handling in xgbe_rx_adaptation Raju Rangoju
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Raju Rangoju @ 2026-03-05  4:29 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, pabeni, kuba, edumazet, davem, andrew+netdev, horms,
	Shyam-sundar.S-k, Raju Rangoju

This series fixes several issues in the amd-xgbe driver related to RX
adaptation and PHY handling in 10GBASE-KR mode, particularly when
auto-negotiation is disabled.

Patch 1 fixes link status handling during RX adaptation by correctly
reading the latched link status bit so transient link drops are
detected without losing the current state.

Patch 2 prevents CRC errors that can occur when performing RX
adaptation with auto-negotiation turned off. The driver now stops
TX/RX before re-triggering RX adaptation and only re-enables traffic
once adaptation completes and the link is confirmed up, ensuring
packets are not corrupted during the adaptation window.

Patch 3 restores the intended ordering of PHY reset relative to
phy_start(), making sure PHY settings are reset before the PHY is
started instead of afterwards.

Changes since v1:
 - Patch 2: change the rx_adapt_data_path_stopped flag to boolean type
   as it is only used as a true/false indicator.

Raju Rangoju (3):
  amd-xgbe: fix link status handling in xgbe_rx_adaptation
  amd-xgbe: prevent CRC errors during RX adaptation with AN disabled
  amd-xgbe: reset PHY settings before starting PHY

 drivers/net/ethernet/amd/xgbe/xgbe-drv.c    | 15 ++--
 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c | 78 +++++++++++++++++++--
 drivers/net/ethernet/amd/xgbe/xgbe.h        |  4 ++
 3 files changed, 83 insertions(+), 14 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-05  7:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05  4:29 [PATCH v2 net 0/3] amd-xgbe: RX adaptation and PHY handling fixes Raju Rangoju
2026-03-05  4:29 ` [PATCH v2 net 1/3] amd-xgbe: fix link status handling in xgbe_rx_adaptation Raju Rangoju
2026-03-05  7:59   ` Paolo Abeni
2026-03-05  4:29 ` [PATCH v2 net 2/3] amd-xgbe: prevent CRC errors during RX adaptation with AN disabled Raju Rangoju
2026-03-05  4:29 ` [PATCH v2 net 3/3] amd-xgbe: reset PHY settings before starting PHY Raju Rangoju

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.