diff options
author | Vladyslav Tarasiuk <vladyslavt@nvidia.com> | 2021-05-09 09:43:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-10 14:34:39 -0700 |
commit | db825feefc6868896fed5e361787ba3bee2fd906 (patch) | |
tree | f7eb110d81bee67b40df0bc9a462e6e3b5891668 /net/tipc | |
parent | a269333fa5c0c8e53c92b5a28a6076a28cde3e83 (diff) | |
download | linux-db825feefc6868896fed5e361787ba3bee2fd906.tar.gz linux-db825feefc6868896fed5e361787ba3bee2fd906.tar.bz2 linux-db825feefc6868896fed5e361787ba3bee2fd906.zip |
net/mlx4: Fix EEPROM dump support
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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions