diff options
author | Vladyslav Tarasiuk <vladyslavt@nvidia.com> | 2021-05-09 09:43:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-03 08:59:07 +0200 |
commit | 5e01d87b108c72fc97f7260676c4d5a7fc8a10e4 (patch) | |
tree | 9cf62acdbe8de91f4bc456dd63bcb182dc0d504b /net/tipc/core.c | |
parent | 4fd3213e53547341d23374feba9bb7c3c4c76f9e (diff) |
net/mlx4: Fix EEPROM dump support
commit db825feefc6868896fed5e361787ba3bee2fd906 upstream.
Fix SFP and QSFP* EEPROM queries by setting i2c_address, offset and page
number correctly. For SFP set the following params:
- I2C address for offsets 0-255 is 0x50. For 256-511 - 0x51.
- Page number is zero.
- Offset is 0-255.
At the same time, QSFP* parameters are different:
- I2C address is always 0x50.
- Page number is not limited to zero.
- Offset is 0-255 for page zero and 128-255 for others.
To set parameters accordingly to cable used, implement function to query
module ID and implement respective helper functions to set parameters
correctly.
Fixes: 135dd9594f12 ("net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query")
Signed-off-by: Vladyslav Tarasiuk <vladyslavt@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc/core.c')
0 files changed, 0 insertions, 0 deletions