Skip to content

Commit 900a81c

Browse files
joabreudavem330
authored andcommitted
net: stmmac: dwxgmac: Fix the undefined burst setting
Undefined burst shall only be set if pdata asks to. Signed-off-by: Jose Abreu <[email protected]> Cc: Joao Pinto <[email protected]> Cc: David S. Miller <[email protected]> Cc: Giuseppe Cavallaro <[email protected]> Cc: Alexandre Torgue <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 01d1689 commit 900a81c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ static void dwxgmac2_dma_axi(void __iomem *ioaddr, struct stmmac_axi *axi)
9191
value |= (axi->axi_rd_osr_lmt << XGMAC_RD_OSR_LMT_SHIFT) &
9292
XGMAC_RD_OSR_LMT;
9393

94+
if (!axi->axi_fb)
95+
value |= XGMAC_UNDEF;
96+
9497
value &= ~XGMAC_BLEN;
9598
for (i = 0; i < AXI_BLEN; i++) {
96-
if (axi->axi_blen[i])
97-
value &= ~XGMAC_UNDEF;
98-
9999
switch (axi->axi_blen[i]) {
100100
case 256:
101101
value |= XGMAC_BLEN256;

0 commit comments

Comments
 (0)