amd-xgbe: Delay AN timeout during KR training
authorRaju Rangoju <Raju.Rangoju@amd.com>
Wed, 11 Jan 2023 17:28:52 +0000 (22:58 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jan 2023 05:50:37 +0000 (21:50 -0800)
commit926446ae24c03311a480fb96eb78f0ce7ea6d091
tree0026d3fc98b7b30dd1e0c77f33c230f6807f136c
parent579923d84b04abb6cd4cd1fd9974096a2dd1832b
amd-xgbe: Delay AN timeout during KR training

AN restart triggered during KR training not only aborts the KR training
process but also move the HW to unstable state. Driver has to wait upto
500ms or until the KR training is completed before restarting AN cycle.

Fixes: 7c12aa08779c ("amd-xgbe: Move the PHY support into amd-xgbe")
Co-developed-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
drivers/net/ethernet/amd/xgbe/xgbe.h