diff options
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c index 471a9aa6ac94..22cf6353ba04 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | |||
@@ -205,8 +205,8 @@ static void dwmac1000_dump_dma_regs(void __iomem *ioaddr, u32 *reg_space) | |||
205 | { | 205 | { |
206 | int i; | 206 | int i; |
207 | 207 | ||
208 | for (i = 0; i < 22; i++) | 208 | for (i = 0; i < 23; i++) |
209 | if ((i < 9) || (i > 17)) | 209 | if ((i < 12) || (i > 17)) |
210 | reg_space[DMA_BUS_MODE / 4 + i] = | 210 | reg_space[DMA_BUS_MODE / 4 + i] = |
211 | readl(ioaddr + DMA_BUS_MODE + i * 4); | 211 | readl(ioaddr + DMA_BUS_MODE + i * 4); |
212 | } | 212 | } |
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c index 743170d57f62..babb39c646ff 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include "stmmac.h" | 29 | #include "stmmac.h" |
30 | #include "dwmac_dma.h" | 30 | #include "dwmac_dma.h" |
31 | 31 | ||
32 | #define REG_SPACE_SIZE 0x1054 | 32 | #define REG_SPACE_SIZE 0x1060 |
33 | #define MAC100_ETHTOOL_NAME "st_mac100" | 33 | #define MAC100_ETHTOOL_NAME "st_mac100" |
34 | #define GMAC_ETHTOOL_NAME "st_gmac" | 34 | #define GMAC_ETHTOOL_NAME "st_gmac" |
35 | 35 | ||