Commit 2fc1d8ee authored by Gal Hammer's avatar Gal Hammer Committed by Tony Nguyen

igb: read PBA number from flash

Fixed flash presence check for 82576 controllers so the part
number string is read and displayed correctly.
Signed-off-by: default avatarGal Hammer <ghammer@redhat.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 9cbc948b
...@@ -3532,7 +3532,9 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -3532,7 +3532,9 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
"Width x1" : "unknown"), netdev->dev_addr); "Width x1" : "unknown"), netdev->dev_addr);
} }
if ((hw->mac.type >= e1000_i210 || if ((hw->mac.type == e1000_82576 &&
rd32(E1000_EECD) & E1000_EECD_PRES) ||
(hw->mac.type >= e1000_i210 ||
igb_get_flash_presence_i210(hw))) { igb_get_flash_presence_i210(hw))) {
ret_val = igb_read_part_string(hw, part_str, ret_val = igb_read_part_string(hw, part_str,
E1000_PBANUM_LENGTH); E1000_PBANUM_LENGTH);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment