diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-08-07 11:03:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-09 08:20:18 +0300 |
commit | b6cdf09f51c20a25b7952773b61116452de66189 (patch) | |
tree | 7920ca6f67cbb17141c2e746adefbf9374f38bc8 /drivers/net/ethernet/stmicro/stmmac/hwif.c | |
parent | 6c9081a3915dc0782a8f1424343b794f2cf53d9c (diff) | |
download | linux-b6cdf09f51c20a25b7952773b61116452de66189.tar.xz |
net: stmmac: xgmac: Implement MMC counters
Implement the MMC counters feature in XGMAC core.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/hwif.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/hwif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/hwif.c b/drivers/net/ethernet/stmicro/stmmac/hwif.c index 6c61b753b55e..3af2e5015245 100644 --- a/drivers/net/ethernet/stmicro/stmmac/hwif.c +++ b/drivers/net/ethernet/stmicro/stmmac/hwif.c @@ -201,7 +201,7 @@ static const struct stmmac_hwif_entry { .min_id = DWXGMAC_CORE_2_10, .regs = { .ptp_off = PTP_XGMAC_OFFSET, - .mmc_off = 0, + .mmc_off = MMC_XGMAC_OFFSET, }, .desc = &dwxgmac210_desc_ops, .dma = &dwxgmac210_dma_ops, @@ -209,7 +209,7 @@ static const struct stmmac_hwif_entry { .hwtimestamp = &stmmac_ptp, .mode = NULL, .tc = &dwmac510_tc_ops, - .mmc = NULL, + .mmc = &dwxgmac_mmc_ops, .setup = dwxgmac2_setup, .quirks = NULL, }, |