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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:17:13 +0000 (19:17 +0100)
commit3ce70c345537ccf6acf63003f675f84374e117d4
tree89c3d5cc62e491d54fe16c22c8c8b306b1345e42
parented8b7355e38b3817ed6a23bd6932d25f579bb6e7
cxgb4: fix eeprom len when diagnostics not implemented

[ 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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.h