diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-18 21:04:37 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-20 15:49:00 -0500 |
commit | f240e15097c5004811a58f2cbc170bf90d06d0a9 (patch) | |
tree | aeb9fe27612afcd7cc184ea7df6c15c55aa8eb26 /drivers/net/ethernet/broadcom/tg3.h | |
parent | 37838aa437c78fefd7d818f5f01a3a3950e92f40 (diff) | |
download | linux-f240e15097c5004811a58f2cbc170bf90d06d0a9.tar.gz linux-f240e15097c5004811a58f2cbc170bf90d06d0a9.tar.bz2 linux-f240e15097c5004811a58f2cbc170bf90d06d0a9.zip |
tg3: Read VPD with pci_vpd_alloc()
Use pci_vpd_alloc() to dynamically allocate a properly sized buffer and
read the full VPD data into it.
This simplifies the code, and we no longer have to make assumptions about
VPD size.
Link: https://lore.kernel.org/r/bd3cd19c-b74f-9704-5786-476bf35ab5de@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h index 46ec4fdfd16a..1000c894064f 100644 --- a/drivers/net/ethernet/broadcom/tg3.h +++ b/drivers/net/ethernet/broadcom/tg3.h @@ -2101,7 +2101,6 @@ /* Hardware Legacy NVRAM layout */ #define TG3_NVM_VPD_OFF 0x100 #define TG3_NVM_VPD_LEN 256 -#define TG3_NVM_PCI_VPD_MAX_LEN 512 /* Hardware Selfboot NVRAM layout */ #define TG3_NVM_HWSB_CFG1 0x00000004 |