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

Commit c2c78d5c authored by Don Skidmore's avatar Don Skidmore Committed by Jeff Kirsher
Browse files

ixgbe: add define for X557 PHY ID



Add a define for the new PHY identification as well as it's mapping
to the correct PHY type.  Also allow ethtool to identify this type
as well.

Signed-off-by: default avatarDon Skidmore <donald.c.skidmore@intel.com>
Tested-by: default avatarKrishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent df8c26fd
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -207,6 +207,7 @@ static int ixgbe_get_settings(struct net_device *netdev,
	switch (adapter->hw.phy.type) {
	switch (adapter->hw.phy.type) {
	case ixgbe_phy_tn:
	case ixgbe_phy_tn:
	case ixgbe_phy_aq:
	case ixgbe_phy_aq:
	case ixgbe_phy_x550em_ext_t:
	case ixgbe_phy_cu_unknown:
	case ixgbe_phy_cu_unknown:
		ecmd->supported |= SUPPORTED_TP;
		ecmd->supported |= SUPPORTED_TP;
		ecmd->advertising |= ADVERTISED_TP;
		ecmd->advertising |= ADVERTISED_TP;
+3 −0
Original line number Original line Diff line number Diff line
@@ -356,6 +356,9 @@ static enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id)
	case ATH_PHY_ID:
	case ATH_PHY_ID:
		phy_type = ixgbe_phy_nl;
		phy_type = ixgbe_phy_nl;
		break;
		break;
	case X557_PHY_ID:
		phy_type = ixgbe_phy_x550em_ext_t;
		break;
	default:
	default:
		phy_type = ixgbe_phy_unknown;
		phy_type = ixgbe_phy_unknown;
		break;
		break;
+1 −0
Original line number Original line Diff line number Diff line
@@ -1334,6 +1334,7 @@ struct ixgbe_thermal_sensor_data {
#define TN1010_PHY_ID    0x00A19410
#define TN1010_PHY_ID    0x00A19410
#define TNX_FW_REV       0xB
#define TNX_FW_REV       0xB
#define X540_PHY_ID      0x01540200
#define X540_PHY_ID      0x01540200
#define X557_PHY_ID      0x01540240
#define QT2022_PHY_ID    0x0043A400
#define QT2022_PHY_ID    0x0043A400
#define ATH_PHY_ID       0x03429050
#define ATH_PHY_ID       0x03429050
#define AQ_FW_REV        0x20
#define AQ_FW_REV        0x20