Skip to content

Commit 53ea6c7

Browse files
Todd FujinakaJeff Kirsher
authored andcommitted
igb: Don't look for a PBA in the iNVM when flashless
When a part is flashless, do not look for a PBA in the iNVM. Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent c995ae2 commit 53ea6c7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2367,7 +2367,14 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
23672367
"Width x1" : "unknown"), netdev->dev_addr);
23682368
}
23692369

2370-
ret_val = igb_read_part_string(hw, part_str, E1000_PBANUM_LENGTH);
2370+
if ((hw->mac.type >= e1000_i210 ||
2371+
igb_get_flash_presence_i210(hw))) {
2372+
ret_val = igb_read_part_string(hw, part_str,
2373+
E1000_PBANUM_LENGTH);
2374+
} else {
2375+
ret_val = -E1000_ERR_INVM_VALUE_NOT_FOUND;
2376+
}
2377+
23712378
if (ret_val)
23722379
strcpy(part_str, "Unknown");
23732380
dev_info(&pdev->dev, "%s: PBA No: %s\n", netdev->name, part_str);

0 commit comments

Comments
 (0)