diff options
author | Thor Thayer | 2017-07-21 23:35:09 +0200 |
---|---|---|
committer | David S. Miller | 2017-07-25 01:19:10 +0200 |
commit | f4458b92d2190757bef81a5f282d2644ccbaec23 (patch) | |
tree | 1836cb1bed493b6ae81a9d8ffb1829fcf0eb5b23 /drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c | |
parent | net/socket: fix type in assignment and trim long line (diff) | |
download | kernel-qcow2-linux-f4458b92d2190757bef81a5f282d2644ccbaec23.tar.gz kernel-qcow2-linux-f4458b92d2190757bef81a5f282d2644ccbaec23.tar.xz kernel-qcow2-linux-f4458b92d2190757bef81a5f282d2644ccbaec23.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c index eef2f222ce9a..6502b9aa3bf5 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c @@ -70,7 +70,7 @@ static void dwmac100_dump_dma_regs(void __iomem *ioaddr, u32 *reg_space) { int i; - for (i = 0; i < 9; i++) + for (i = 0; i < NUM_DWMAC100_DMA_REGS; i++) reg_space[DMA_BUS_MODE / 4 + i] = readl(ioaddr + DMA_BUS_MODE + i * 4); |