diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 2e89ec4..7deab7a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -698,6 +698,7 @@ <&clkc CLKID_MPLL2>; clock-names = "stmmaceth", "clkin0", "clkin1"; phy-mode = "rgmii"; + snps,pbl = <8>; status = "disabled"; }; }; diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c index 99074695..fffb407 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c @@ -97,7 +97,7 @@ static void dwmac1000_dma_init(void __iomem *ioaddr, int pbl, int fb, int mb, * so only the bits: 13-8 are programmed with the PBL passed from the * platform. */ - value |= DMA_BUS_MODE_MAXPBL; + value &= ~DMA_BUS_MODE_MAXPBL; value &= ~DMA_BUS_MODE_PBL_MASK; value |= (pbl << DMA_BUS_MODE_PBL_SHIFT);