]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amd-xgbe: do not double read link status
authorRaju Rangoju <Raju.Rangoju@amd.com>
Tue, 1 Jul 2025 06:50:16 +0000 (12:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:12 +0000 (16:03 +0200)
commit70b32cba5cfdec26c0d323a750259643c6326d2b
treeb0e31e6b4d510bcd093451f9a8aced93aba7c553
parentf680a4643c6f71e758d8fe0431a958e9a6a4f59d
amd-xgbe: do not double read link status

[ Upstream commit 16ceda2ef683a50cd0783006c0504e1931cd8879 ]

The link status is latched low so that momentary link drops
can be detected. Always double-reading the status defeats this
design feature. Only double read if link was already down

This prevents unnecessary duplicate readings of the link status.

Fixes: 4f3b20bfbb75 ("amd-xgbe: add support for rx-adaptation")
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250701065016.4140707-1-Raju.Rangoju@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c