]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:27:16 +0000 (13:27 +0100)
commitd05c9bcab23ecbc68632c4fc8eda9af9c89eb647
tree109a5bd760037fd4ba1b24ff6d56759c2acb941c
parent735d1d973e6d0aae5f6875e7d9b087d2ccfed076
bnxt_en: read EEPROM A2h address using page 0

[ Upstream commit 4260330b32b14330cfe427d568ac5f5b29b5be3d ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c