linux/drivers/net/ethernet/freescale
Fugang Duan ec20a63aa8 net: fec: don't dump RX FIFO register when not available
Commit db65f35f50 ("net: fec: add support of ethtool get_regs") introduce
ethool "--register-dump" interface to dump all FEC registers.

But not all silicon implementations of the Freescale FEC hardware module
have the FRBR (FIFO Receive Bound Register) and FRSR (FIFO Receive Start
Register) register, so we should not be trying to dump them on those that
don't.

To fix it we create a quirk flag, FEC_QUIRK_HAS_RFREG, and check it before
dump those RX FIFO registers.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-15 22:52:18 -07:00
..
dpaa Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-07-03 10:29:26 +09:00
fman Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-07-03 10:29:26 +09:00
fs_enet Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-08-15 16:01:47 -07:00
fec_main.c net: fec: don't dump RX FIFO register when not available 2018-10-15 22:52:18 -07:00
fec_mpc52xx_phy.c
fec_mpc52xx.c net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
fec_mpc52xx.h
fec_ptp.c net: fec: remove redundant variable 'inc' 2018-07-04 22:39:11 +09:00
fec.h net: fec: don't dump RX FIFO register when not available 2018-10-15 22:52:18 -07:00
fsl_pq_mdio.c net/fsl_pq_mdio: Allow explicit speficition of TBIPA address 2018-04-08 12:44:49 -04:00
gianfar_ethtool.c net: ethernet: gianfar_ethtool: remove redundant variable last_rule_idx 2018-07-04 22:39:11 +09:00
gianfar.c gianfar: Fix Rx byte accounting for ndev stats 2018-02-28 10:59:33 -05:00
gianfar.h net: ethernet: gianfar_ethtool: get phc index through drvdata 2018-05-28 23:05:11 -04:00
Kconfig net: ethernet: freescale: Allow FEC with COMPILE_TEST 2018-05-17 17:11:06 -04:00
Makefile ptp: rework gianfar_ptp as QorIQ common PTP driver 2018-05-28 23:05:11 -04:00
ucc_geth_ethtool.c net: ethernet: ucc: fix spelling mistake: "tx-late-collsion" -> "tx-late-collision" 2018-04-30 09:29:39 -04:00
ucc_geth.c ucc_geth: Add BQL support 2018-06-22 13:56:00 +09:00
ucc_geth.h
xgmac_mdio.c