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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 11:30:35 +0000 (12:30 +0100)
commitdaf182d360e509a494db18666799f4e85d83dda0
treefbc78357eb060680309469200a503695c95a2140
parentcec6880d9b064794bc73c39c576f2f13fd9e1ae2
net: amd-xgbe: Toggle PLL settings during rate change

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>
drivers/net/ethernet/amd/xgbe/xgbe-common.h
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c