net: stmmac: Adjust dump offset of DMA registers for ethtool
authorThor Thayer <thor.thayer@linux.intel.com>
Fri, 21 Jul 2017 21:35:09 +0000 (16:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2017 23:19:10 +0000 (16:19 -0700)
commitf4458b92d2190757bef81a5f282d2644ccbaec23
tree1836cb1bed493b6ae81a9d8ffb1829fcf0eb5b23
parent864d9664245565a6b9df86a68c7664a25a4fcd58
net: stmmac: Adjust dump offset of DMA registers for ethtool

The commit fbf68229ffe7 ("net: stmmac: unify registers dumps methods")

in the Linux kernel modified the register dump to store the DMA registers
at the DMA register offset (0x1000) but ethtool (stmmac.c) looks for the
DMA registers after the MAC registers which is offset 55.
This patch copies the DMA registers from the higher offset to the offset
where ethtool expects them.

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c