diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-12-18 13:33:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-18 23:17:11 +0300 |
commit | f0e56c8d8f7d0e03e571e21c778f02d226aaeb97 (patch) | |
tree | aa686aa53d45c57bb6deb4b71e6b862a0fc70309 /drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | |
parent | 7c7282746883e48aff54ff6d55e6d8674a0c414a (diff) | |
download | linux-f0e56c8d8f7d0e03e571e21c778f02d226aaeb97.tar.xz |
net: stmmac: xgmac3+: Add support for Frame Preemption
Adds the HW specific support for Frame Preemption on XGMAC3+ cores.
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c index 6ff2795a5117..c1ca73ebb0e7 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c @@ -429,6 +429,7 @@ static void dwxgmac2_get_hw_feature(void __iomem *ioaddr, /* MAC HW feature 3 */ hw_cap = readl(ioaddr + XGMAC_HW_FEATURE3); + dma_cap->fpesel = (hw_cap & XGMAC_HWFEAT_FPESEL) >> 26; dma_cap->estwid = (hw_cap & XGMAC_HWFEAT_ESTWID) >> 23; dma_cap->estdep = (hw_cap & XGMAC_HWFEAT_ESTDEP) >> 20; dma_cap->estsel = (hw_cap & XGMAC_HWFEAT_ESTSEL) >> 19; |