]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
cxgb4: fix eeprom len when diagnostics not implemented
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Thu, 11 Nov 2021 10:25:16 +0000 (15:55 +0530)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:38 +0000 (09:48 +0100)
commit961229c04d9bc786cfb99e70513e5333061bda93
tree7d603c57003175999df0581243412e826af3d193
parent0cad438ed594af9a74296cd80759e4f49938d490
cxgb4: fix eeprom len when diagnostics not implemented

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 4ca110bf8d9b31a60f8f8ff6706ea147d38ad97c ]

Ensure diagnostics monitoring support is implemented for the SFF 8472
compliant port module and set the correct length for ethtool port
module eeprom read.

Fixes: f56ec6766dcf ("cxgb4: Add support for ethtool i2c dump")
Signed-off-by: Manoj Malviya <manojmalviya@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.h