amd-xgbe: propagate the correct speed and duplex status
authorRaju Rangoju <Raju.Rangoju@amd.com>
Tue, 21 Nov 2023 19:14:35 +0000 (00:44 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Nov 2023 12:47:23 +0000 (13:47 +0100)
commit7a2323ac24a50311f64a3a9b54ed5bef5821ecae
tree2494e5a36f2da68a6ccd0965027565f7a7e7c052
parent7121205d5330c6a3cb3379348886d47c77b78d06
amd-xgbe: propagate the correct speed and duplex status

xgbe_get_link_ksettings() does not propagate correct speed and duplex
information to ethtool during cable unplug. Due to which ethtool reports
incorrect values for speed and duplex.

Address this by propagating correct information.

Fixes: 7c12aa08779c ("amd-xgbe: Move the PHY support into amd-xgbe")
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c