--- zzzz-none-000/linux-4.4.60/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-7490-727/linux-4.4.60/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c 2021-02-04 17:41:59.000000000 +0000 @@ -259,6 +259,7 @@ { struct plat_stmmacenet_data *plat_dat; struct stmmac_resources stmmac_res; + struct stmmac_dma_cfg *dma_cfg; struct device *dev = &pdev->dev; struct ipq806x_gmac *gmac; int val; @@ -348,6 +349,17 @@ plat_dat->bsp_priv = gmac; plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; + dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*dma_cfg), + GFP_KERNEL); + + dma_cfg->pbl = 32; + dma_cfg->aal = 1; + dma_cfg->burst_len = DMA_AXI_BLEN_16 | + (7 << DMA_AXI_RD_OSR_LMT_SHIFT) | + (7 << DMA_AXI_WR_OSR_LMT_SHIFT); + + plat_dat->dma_cfg = dma_cfg; + return stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); }