linux_dsm_epyc7002/drivers/net/ethernet/broadcom/bnx2x
Mauro S. M. Rodrigues cf18cecca9 bnx2x: Check if transceiver implements DDM before access
Some transceivers may comply with SFF-8472 even though they do not
implement the Digital Diagnostic Monitoring (DDM) interface described in
the spec. The existence of such area is specified by the 6th bit of byte
92, set to 1 if implemented.

Currently, without checking this bit, bnx2x fails trying to read sfp
module's EEPROM with the follow message:

ethtool -m enP5p1s0f1
Cannot get Module EEPROM data: Input/output error

Because it fails to read the additional 256 bytes in which it is assumed
to exist the DDM data.

This issue was noticed using a Mellanox Passive DAC PN 01FT738. The EEPROM
data was confirmed by Mellanox as correct and similar to other Passive
DACs from other manufacturers.

Signed-off-by: Mauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>
Acked-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-06-18 10:02:40 -07:00
..
bnx2x_cmn.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-05-07 22:03:58 -07:00
bnx2x_cmn.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-05-07 22:03:58 -07:00
bnx2x_dcb.c
bnx2x_dcb.h
bnx2x_dump.h
bnx2x_ethtool.c bnx2x: Check if transceiver implements DDM before access 2019-06-18 10:02:40 -07:00
bnx2x_fw_defs.h
bnx2x_fw_file_hdr.h
bnx2x_hsi.h bnx2x: Utilize FW 7.13.11.0. 2019-03-27 13:43:14 -07:00
bnx2x_init_ops.h
bnx2x_init.h bnx2x: fix various indentation issues 2019-01-16 14:03:27 -08:00
bnx2x_link.c broadcom: Mark expected switch fall-throughs 2019-01-23 09:06:36 -08:00
bnx2x_link.h bnx2x: Check if transceiver implements DDM before access 2019-06-18 10:02:40 -07:00
bnx2x_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-05-07 22:03:58 -07:00
bnx2x_mfw_req.h
bnx2x_reg.h
bnx2x_sp.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
bnx2x_sp.h bnx2x: Remove configured vlans as part of unload sequence. 2018-12-12 16:25:14 -08:00
bnx2x_sriov.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
bnx2x_sriov.h bnx2x: Add VF spoof-checking configuration 2018-09-21 09:14:21 -07:00
bnx2x_stats.c
bnx2x_stats.h
bnx2x_vfpf.c Remove Mysterious Macro Intended to Obscure Weird Behaviours (mmiowb()) 2019-05-06 16:57:52 -07:00
bnx2x_vfpf.h
bnx2x.h bnx2x: Bump up driver version to 1.713.36 2019-01-22 21:02:00 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00