sky2: use PCI VPD API in eeprom ethtool ops
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 18 Nov 2021 20:04:23 +0000 (21:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Nov 2021 11:21:46 +0000 (11:21 +0000)
commit92e888bc6f1b84cb4dee23d768777362221be1d4
treeeb704389b832a8af3ed0653bb3926381ab10d0fc
parenta6366b13c165e5d8d8b06d8d732a4f98bfb8ef66
sky2: use PCI VPD API in eeprom ethtool ops

Recently pci_read/write_vpd_any() have been added to the PCI VPD API.
These functions allow to access VPD address space outside the
auto-detected VPD, and they can be used to significantly simplify the
eeprom ethtool ops.

Tested with a 88E8070 card with 1KB EEPROM.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c