--- zzzz-none-000/linux-4.4.271/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c 2023-04-19 10:22:29.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; @@ -364,6 +365,17 @@ plat_dat->tx_fifo_size = 8192; plat_dat->rx_fifo_size = 8192; + 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); }