[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200820085440.322198-1-ghammer@redhat.com>
Date: Thu, 20 Aug 2020 11:54:40 +0300
From: Gal Hammer <ghammer@...hat.com>
To: netdev@...r.kernel.org
Cc: Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Marcel Apfelbaum <mapfelba@...hat.com>,
Gal Hammer <ghammer@...hat.com>
Subject: [PATCH] igb: read PBA number from flash
Fixed flash presence check for 82576 controllers so the part
number string is read the displayed correctly.
Signed-off-by: Gal Hammer <ghammer@...hat.com>
---
drivers/net/ethernet/intel/igb/igb_main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 4f05f6efe6af..9b6992adccd4 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -3389,7 +3389,9 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
"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))) {
ret_val = igb_read_part_string(hw, part_str,
E1000_PBANUM_LENGTH);
--
2.26.2
Powered by blists - more mailing lists