]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Nov 2021 11:42:13 +0000 (11:42 +0000)
commitfa5402a7763e29eb5d287d7e8739f7264594bfa3
tree87c1da95f41d5c4f473233bd571f64d98db15f2a
parent9acdf2f62dc7329a26b102d8a13b6aaa0e59a53d
cxgb4: fix eeprom len when diagnostics not implemented

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: 01db736b71a8 ("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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.h