ixgbe: add define for X557 PHY ID
authorDon Skidmore <donald.c.skidmore@intel.com>
Tue, 9 Jun 2015 23:04:59 +0000 (16:04 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 10 Jun 2015 00:21:08 +0000 (17:21 -0700)
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: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h

index efe0a5742f9942aaf93af691143a94ff1dca5977..ec7b2324b77b42489d9892de6b785ab7ca9936cf 100644 (file)
@@ -207,6 +207,7 @@ static int ixgbe_get_settings(struct net_device *netdev,
        switch (adapter->hw.phy.type) {
        case ixgbe_phy_tn:
        case ixgbe_phy_aq:
+       case ixgbe_phy_x550em_ext_t:
        case ixgbe_phy_cu_unknown:
                ecmd->supported |= SUPPORTED_TP;
                ecmd->advertising |= ADVERTISED_TP;
index 8f9334db00d67a49740bd9987449b84190440d0a..47ac0bc6b98a948c1fa6aa3bea52bc2a963db4bf 100644 (file)
@@ -356,6 +356,9 @@ static enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id)
        case ATH_PHY_ID:
                phy_type = ixgbe_phy_nl;
                break;
+       case X557_PHY_ID:
+               phy_type = ixgbe_phy_x550em_ext_t;
+               break;
        default:
                phy_type = ixgbe_phy_unknown;
                break;
index 67039ce77b871d91eb7b368986f8445f6edb125c..560a2b43c6b1e67a7e41b3792421c55ce5820055 100644 (file)
@@ -1334,6 +1334,7 @@ struct ixgbe_thermal_sensor_data {
 #define TN1010_PHY_ID    0x00A19410
 #define TNX_FW_REV       0xB
 #define X540_PHY_ID      0x01540200
+#define X557_PHY_ID      0x01540240
 #define QT2022_PHY_ID    0x0043A400
 #define ATH_PHY_ID       0x03429050
 #define AQ_FW_REV        0x20