aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2011-09-21 05:02:50 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-10-05 05:55:22 -0400
commit3e7307fc7b24120dcf795dd1b21fdc6286c48b4c (patch)
tree281d0590a263dd800044573b4682f9a9a587298e /drivers/net
parent860502bf68bae1ab126fe25a72d038c6e205dedd (diff)
ixgbe: remove instances of ixgbe_phy_aq for 82598 and 82599
82598 and 82599 do not ship with this type of PHY Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Stephen Ko <stephen.s.ko@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c2
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c6
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c1
3 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
index 56c32dc16e7f..e02e911057de 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
@@ -307,7 +307,6 @@ static enum ixgbe_media_type ixgbe_get_media_type_82598(struct ixgbe_hw *hw)
307 switch (hw->phy.type) { 307 switch (hw->phy.type) {
308 case ixgbe_phy_cu_unknown: 308 case ixgbe_phy_cu_unknown:
309 case ixgbe_phy_tn: 309 case ixgbe_phy_tn:
310 case ixgbe_phy_aq:
311 media_type = ixgbe_media_type_copper; 310 media_type = ixgbe_media_type_copper;
312 goto out; 311 goto out;
313 default: 312 default:
@@ -1112,7 +1111,6 @@ static u32 ixgbe_get_supported_physical_layer_82598(struct ixgbe_hw *hw)
1112 * physical layer because 10GBase-T PHYs use LMS = KX4/KX */ 1111 * physical layer because 10GBase-T PHYs use LMS = KX4/KX */
1113 switch (hw->phy.type) { 1112 switch (hw->phy.type) {
1114 case ixgbe_phy_tn: 1113 case ixgbe_phy_tn:
1115 case ixgbe_phy_aq:
1116 case ixgbe_phy_cu_unknown: 1114 case ixgbe_phy_cu_unknown:
1117 hw->phy.ops.read_reg(hw, MDIO_PMA_EXTABLE, 1115 hw->phy.ops.read_reg(hw, MDIO_PMA_EXTABLE,
1118 MDIO_MMD_PMAPMD, &ext_ability); 1116 MDIO_MMD_PMAPMD, &ext_ability);
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
index cdcf32a8afff..4ae26a748da0 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
@@ -217,10 +217,6 @@ static s32 ixgbe_init_phy_ops_82599(struct ixgbe_hw *hw)
217 phy->ops.get_firmware_version = 217 phy->ops.get_firmware_version =
218 &ixgbe_get_phy_firmware_version_tnx; 218 &ixgbe_get_phy_firmware_version_tnx;
219 break; 219 break;
220 case ixgbe_phy_aq:
221 phy->ops.get_firmware_version =
222 &ixgbe_get_phy_firmware_version_generic;
223 break;
224 default: 220 default:
225 break; 221 break;
226 } 222 }
@@ -340,7 +336,6 @@ static enum ixgbe_media_type ixgbe_get_media_type_82599(struct ixgbe_hw *hw)
340 switch (hw->phy.type) { 336 switch (hw->phy.type) {
341 case ixgbe_phy_cu_unknown: 337 case ixgbe_phy_cu_unknown:
342 case ixgbe_phy_tn: 338 case ixgbe_phy_tn:
343 case ixgbe_phy_aq:
344 media_type = ixgbe_media_type_copper; 339 media_type = ixgbe_media_type_copper;
345 goto out; 340 goto out;
346 default: 341 default:
@@ -1805,7 +1800,6 @@ static u32 ixgbe_get_supported_physical_layer_82599(struct ixgbe_hw *hw)
1805 1800
1806 switch (hw->phy.type) { 1801 switch (hw->phy.type) {
1807 case ixgbe_phy_tn: 1802 case ixgbe_phy_tn:
1808 case ixgbe_phy_aq:
1809 case ixgbe_phy_cu_unknown: 1803 case ixgbe_phy_cu_unknown:
1810 hw->phy.ops.read_reg(hw, MDIO_PMA_EXTABLE, MDIO_MMD_PMAPMD, 1804 hw->phy.ops.read_reg(hw, MDIO_PMA_EXTABLE, MDIO_MMD_PMAPMD,
1811 &ext_ability); 1805 &ext_ability);
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
index 96e0b2083198..e5101e91b6b5 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
@@ -870,6 +870,7 @@ static struct ixgbe_phy_operations phy_ops_X540 = {
870 .read_i2c_eeprom = &ixgbe_read_i2c_eeprom_generic, 870 .read_i2c_eeprom = &ixgbe_read_i2c_eeprom_generic,
871 .write_i2c_eeprom = &ixgbe_write_i2c_eeprom_generic, 871 .write_i2c_eeprom = &ixgbe_write_i2c_eeprom_generic,
872 .check_overtemp = &ixgbe_tn_check_overtemp, 872 .check_overtemp = &ixgbe_tn_check_overtemp,
873 .get_firmware_version = &ixgbe_get_phy_firmware_version_generic,
873}; 874};
874 875
875struct ixgbe_info ixgbe_X540_info = { 876struct ixgbe_info ixgbe_X540_info = {