]> git.itanic.dy.fi Git - linux-stable/commit
sfc: Fix module EEPROM reporting for QSFP modules
authorAndy Moreton <andy.moreton@amd.com>
Fri, 28 Apr 2023 11:33:33 +0000 (12:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:48:11 +0000 (11:48 +0200)
commit9291aba0ffa0bd15fe3d2677a437328689c15c94
tree6524d52ea48e95bb3e4152b265d628679915e85f
parent774da70521564b3ebbc4d53402a960b1726ae94e
sfc: Fix module EEPROM reporting for QSFP modules

[ Upstream commit 281900a923d4c50df109b52a22ae3cdac150159b ]

The sfc driver does not report QSFP module EEPROM contents correctly
as only the first page is fetched from hardware.

Commit 0e1a2a3e6e7d ("ethtool: Add SFF-8436 and SFF-8636 max EEPROM
length definitions") added ETH_MODULE_SFF_8436_MAX_LEN for the overall
size of the EEPROM info, so use that to report the full EEPROM contents.

Fixes: 9b17010da57a ("sfc: Add ethtool -m support for QSFP modules")
Signed-off-by: Andy Moreton <andy.moreton@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/sfc/mcdi_port_common.c