cxgb3: Remove t3_seeprom_read and use VPD API
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 10 Sep 2021 06:24:07 +0000 (08:24 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 26 Oct 2021 00:20:21 +0000 (19:20 -0500)
commit48225f1878bde8a4ec3c2a96bbf81161e32f03f8
treec61bf081f83c307970cdd7b142bc3ad4a44edd20
parent3331325c6347492dfbe31f6b2bfdaee9b0689cd5
cxgb3: Remove t3_seeprom_read and use VPD API

Using the VPD API allows to simplify the code and completely get rid
of t3_seeprom_read(). Note that we don't have to use pci_read_vpd_any()
here because a VPD quirk sets dev->vpd.len to the full EEPROM size.

Tested with a T320 card.

Link: https://lore.kernel.org/r/68ef15bb-b6bf-40ad-160c-aaa72c4a70f8@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb3/common.h
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c