OSDN Git Service

bnxt_en: read EEPROM A2h address using page 0
authorEdwin Peer <edwin.peer@broadcom.com>
Mon, 16 Nov 2020 00:27:49 +0000 (19:27 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 01:39:46 +0000 (17:39 -0800)
commit4260330b32b14330cfe427d568ac5f5b29b5be3d
tree80c868f3dac0d3538177fc2a4e8a42edad660fd3
parent064c9c32b17ca9b36f95eba32ee790dbbebd9a5f
bnxt_en: read EEPROM A2h address using page 0

The module eeprom address range returned by bnxt_get_module_eeprom()
should be 256 bytes of A0h address space, the lower half of the A2h
address space, and page 0 for the upper half of the A2h address space.

Fix the firmware call by passing page_number 0 for the A2h slave address
space.

Fixes: 42ee18fe4ca2 ("bnxt_en: Add Support for ETHTOOL_GMODULEINFO and ETHTOOL_GMODULEEEPRO")
Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c