]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite11997b1560e3c361c1c41053747b613f4498d26
tree1836cb1bed493b6ae81a9d8ffb1829fcf0eb5b23
parent3bada7dfdd57a61386591c09e7a7934c07805aa4
net: stmmac: Adjust dump offset of DMA registers for ethtool

The commit edac2fabedfc ("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