diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2010-11-24 01:01:51 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2010-12-11 01:13:37 -0500 |
commit | 073287c037083497ebaaf75ead469b769f218615 (patch) | |
tree | 42ebaf5df93e5dd9666039af6d3424b1684823af /drivers/net/e1000e/netdev.c | |
parent | 664dc878ed6f0476b875547547a49e06f7a4e73b (diff) |
e1000e: support new PBA format from EEPROM
Provide support to e1000e for displaying the new format of the PBA found
in the EEPROM. The unique PBA identifier is no longer restricted to
hexadecimal numbers and must now be read and displayed as a string.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index f8efbbbfddfb..393b76d27536 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -5626,7 +5626,8 @@ static void e1000_print_device_info(struct e1000_adapter *adapter) | |||
5626 | { | 5626 | { |
5627 | struct e1000_hw *hw = &adapter->hw; | 5627 | struct e1000_hw *hw = &adapter->hw; |
5628 | struct net_device *netdev = adapter->netdev; | 5628 | struct net_device *netdev = adapter->netdev; |
5629 | u32 pba_num; | 5629 | u32 ret_val; |
5630 | u8 pba_str[E1000_PBANUM_LENGTH]; | ||
5630 | 5631 | ||
5631 | /* print bus type/speed/width info */ | 5632 | /* print bus type/speed/width info */ |
5632 | e_info("(PCI Express:2.5GB/s:%s) %pM\n", | 5633 | e_info("(PCI Express:2.5GB/s:%s) %pM\n", |
@@ -5637,9 +5638,12 @@ static void e1000_print_device_info(struct e1000_adapter *adapter) | |||
5637 | netdev->dev_addr); | 5638 | netdev->dev_addr); |
5638 | e_info("Intel(R) PRO/%s Network Connection\n", | 5639 | e_info("Intel(R) PRO/%s Network Connection\n", |
5639 | (hw->phy.type == e1000_phy_ife) ? "10/100" : "1000"); | 5640 | (hw->phy.type == e1000_phy_ife) ? "10/100" : "1000"); |
5640 | e1000e_read_pba_num(hw, &pba_num); | 5641 | ret_val = e1000_read_pba_string_generic(hw, pba_str, |
5641 | e_info("MAC: %d, PHY: %d, PBA No: %06x-%03x\n", | 5642 | E1000_PBANUM_LENGTH); |
5642 | hw->mac.type, hw->phy.type, (pba_num >> 8), (pba_num & 0xff)); | 5643 | if (ret_val) |
5644 | strcpy(pba_str, "Unknown"); | ||
5645 | e_info("MAC: %d, PHY: %d, PBA No: %s\n", | ||
5646 | hw->mac.type, hw->phy.type, pba_str); | ||
5643 | } | 5647 | } |
5644 | 5648 | ||
5645 | static void e1000_eeprom_checks(struct e1000_adapter *adapter) | 5649 | static void e1000_eeprom_checks(struct e1000_adapter *adapter) |