]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: amd-xgbe: Fix network fluctuations when using 1G BELFUSE SFP
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Tue, 16 Feb 2021 19:07:10 +0000 (00:37 +0530)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:24 +0000 (18:31 +0200)
commite47bfa185411933da5d7d0681afdbd78b448dd3f
tree5c2a7eeabdec95bd5137c41916f997c26441b973
parentec65ac0b91e435ade6c890ff945a8730a11d310c
net: amd-xgbe: Fix network fluctuations when using 1G BELFUSE SFP

BugLink: https://bugs.launchpad.net/bugs/1918974
[ Upstream commit 9eab3fdb419916f66a72d1572f68d82cd9b3f963 ]

Frequent link up/down events can happen when a Bel Fuse SFP part is
connected to the amd-xgbe device. Try to avoid the frequent link
issues by resetting the PHY as documented in Bel Fuse SFP datasheets.

Fixes: e722ec82374b ("amd-xgbe: Update the BelFuse quirk to support SGMII")
Co-developed-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c