net: stmmac: unify registers dumps methods
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Thu, 23 Feb 2017 13:12:25 +0000 (14:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2017 16:42:33 +0000 (11:42 -0500)
commitfbf68229ffe7e12c78b55714de08c1c34a2e2047
treee5f54d7ca8ed1a048dc852ffd9431dbe008c2be5
parent77cc7aee099e7a7843835995101379405564f775
net: stmmac: unify registers dumps methods

The stmmac driver have two methods for registers dumps: via ethtool and
at init (if NETIF_MSG_HW is enabled).

It is better to keep only one method, ethtool, since the other was ugly.

This patch convert all dump_regs() function from "printing regs" to
"fill the reg_space used by ethtool".

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c