Skip to content

Commit 77b0d36

Browse files
tthayer-inteldavem330
authored andcommitted
net: stmmac: Add additional registers for dwmac1000_dma ethtool
Version 3.70a of the Designware has additional DMA registers so add those to the ethtool DMA Register dump. Offset 9 - Receive Interrupt Watchdog Timer Register Offset 10 - AXI Bus Mode Register Offset 11 - AHB or AXI Status Register Offset 22 - HW Feature Register Signed-off-by: Thor Thayer <[email protected]> Acked-by: Giuseppe Cavallaro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5185ad6 commit 77b0d36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ static void dwmac1000_dump_dma_regs(void __iomem *ioaddr, u32 *reg_space)
205205
{
206206
int i;
207207

208-
for (i = 0; i < 22; i++)
209-
if ((i < 9) || (i > 17))
208+
for (i = 0; i < 23; i++)
209+
if ((i < 12) || (i > 17))
210210
reg_space[DMA_BUS_MODE / 4 + i] =
211211
readl(ioaddr + DMA_BUS_MODE + i * 4);
212212
}

drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "stmmac.h"
3030
#include "dwmac_dma.h"
3131

32-
#define REG_SPACE_SIZE 0x1054
32+
#define REG_SPACE_SIZE 0x1060
3333
#define MAC100_ETHTOOL_NAME "st_mac100"
3434
#define GMAC_ETHTOOL_NAME "st_gmac"
3535

0 commit comments

Comments
 (0)