]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Fix wrong SFP EEPROM reading for upper pages 1-3
authorVadim Pasternak <vadimp@mellanox.com>
Fri, 17 Jul 2020 19:01:43 +0000 (22:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jul 2020 02:07:26 +0000 (19:07 -0700)
commit5ee3c434b1e9270dd4942df038a30faf7dda8ecb
tree65001b18e340c8bb23761a876fe6dec2463aaa55
parentd7ad993cf2dcf102f3c433c6a3c0d69c09fd2087
mlxsw: core: Fix wrong SFP EEPROM reading for upper pages 1-3

Fix wrong reading of upper pages for SFP EEPROM. According to "Memory
Organization" figure in SFF-8472 spec: When reading upper pages 1, 2 and
3 the offset should be set relative to zero and I2C high address 0x51
[1010001X (A2h)] is to be used.

Fixes: 49f8657dff1a ("mlxsw: core: Extend QSFP EEPROM size for ethtool")
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c