net: stmmac: Set FIFO sizes for ipq806x
Subsystems (5)
RFC PATCH 1/1 net: stmmac: Set FIFO sizes for ipq806x
(This is an RFC in the hope someone with better knowledge of the Qualcomm IPQ806x hardware can confirm 8k is the correct FIFO depth. I've plucked that value from the MikroTik kernel patch, and it works for me, and 0 definitely isn't the right value.)
Commit eaf4fac47807 ("net: stmmac: Do not accept invalid MTU values") started using the TX FIFO size to verify what counts as a valid MTU request for the stmmac driver. This is unset for the ipq806x variant. Looking at older patches for this it seems the RX + TX buffers can be up to 8k, so set appropriately.
Signed-off-by Jonathan McDowell <[email protected]>
--- drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +2 -0
@@ -351,6 +351,8 @@ static int ipq806x_gmac_probe(struct platform_device *pdev) plat_dat->has_gmac = true; plat_dat->bsp_priv = gmac; plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; + plat_dat->tx_fifo_size =8192 ; + plat_dat->rx_fifo_size =8192 ; err =stmmac_dvr_probe (&pdev->dev, plat_dat, &stmmac_res);if (err)
Signature · 1 line
2.20.1