Skip to content

Commit

Permalink
Merge branch 'stmmac-Frame-Preemption-fixes'
Browse files Browse the repository at this point in the history
Jose Abreu says:

====================
net: stmmac: Frame Preemption fixes

Two single fixes for the -next tree for recently introduced Frame Preemption
feature.

1) and 2) fixes the disabling of Frame Preemption that was not being correctly
handled because of a missing return.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 10, 2020
2 parents 7112f8b + e735def commit 916d08f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/stmicro/stmmac/dwmac5.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ void dwmac5_fpe_configure(void __iomem *ioaddr, u32 num_txq, u32 num_rxq,
value &= ~EFPE;

writel(value, ioaddr + MAC_FPE_CTRL_STS);
return;
}

value = readl(ioaddr + GMAC_RXQ_CTRL1);
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,7 @@ static void dwxgmac3_fpe_configure(void __iomem *ioaddr, u32 num_txq,
value &= ~XGMAC_EFPE;

writel(value, ioaddr + XGMAC_FPE_CTRL_STS);
return;
}

value = readl(ioaddr + XGMAC_RXQ_CTRL1);
Expand Down

0 comments on commit 916d08f

Please sign in to comment.