Skip to content

Commit

Permalink
net: stmmac: gmac5+: Fix missing return
Browse files Browse the repository at this point in the history
If FPE is supposed to be disabled we need to return after disabling it.

Fixes: 7c72827 ("net: stmmac: gmac5+: Add support for Frame Preemption")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jose Abreu authored and David S. Miller committed Jan 10, 2020
1 parent 8eea7c7 commit e735def
Showing 1 changed file with 1 addition 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

0 comments on commit e735def

Please sign in to comment.