Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c799990 authored by Don Skidmore's avatar Don Skidmore Committed by Greg Kroah-Hartman
Browse files

ixgbe: Configure advertised speeds correctly for KR/KX backplane




[ Upstream commit 54f6d4c42451dbd2cc7e0f0bd8fc3eddcab511fe ]

This patch ensures that the advertised link speeds are configured
for X553 KR/KX backplane.  Without this patch the link remains at
1G when resuming from low power after being downshifted by LPLU.

Signed-off-by: default avatarDon Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d820f84
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1995,12 +1995,11 @@ static s32 ixgbe_setup_kx4_x550em(struct ixgbe_hw *hw)
/**
 * ixgbe_setup_kr_x550em - Configure the KR PHY
 * @hw: pointer to hardware structure
 *
 * Configures the integrated KR PHY for X550EM_x.
 **/
static s32 ixgbe_setup_kr_x550em(struct ixgbe_hw *hw)
{
	if (hw->mac.type != ixgbe_mac_X550EM_x)
	/* leave link alone for 2.5G */
	if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_2_5GB_FULL)
		return 0;

	return ixgbe_setup_kr_speed_x550em(hw, hw->phy.autoneg_advertised);