]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: amd-xgbe: Toggle PLL settings during rate change
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Wed, 27 Oct 2021 09:57:27 +0000 (15:27 +0530)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:26 +0000 (09:48 +0100)
commit4c30398787cd2ea23e95bcde0d99f9a9ab20098c
tree8f91bd75d652cc7ae8f38b8f9888789e1b1a6d74
parent05d2bd5d498d0f1109e31ed233a9e3af20cda04e
net: amd-xgbe: Toggle PLL settings during rate change

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit daf182d360e509a494db18666799f4e85d83dda0 ]

For each rate change command submission, the FW has to do a phy
power off sequence internally. For this to happen correctly, the
PLL re-initialization control setting has to be turned off before
sending mailbox commands and re-enabled once the command submission
is complete.

Without the PLL control setting, the link up takes longer time in a
fixed phy configuration.

Fixes: 47f164deab22 ("amd-xgbe: Add PCI device support")
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: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/amd/xgbe/xgbe-common.h
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c