Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: stmmac: dwmac-rk: Provide FIFO sizes for DWMAC 1000

The DWMAC 1000 DMA capabilities register does not provide actual
FIFO sizes, nor does the driver really care. If they are not
provided via some other means, the driver will work fine, only
disallowing changing the MTU setting.

Provide the FIFO sizes through the driver's platform data to enable
MTU changes. The FIFO sizes are confirmed to be the same across RK3288,
RK3328, RK3399 and PX30, based on their respective manuals. It is
likely that Rockchip synthesized their DWMAC 1000 with the same
parameters on all their chips that have it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250312163426.2178314-1-wens@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Chen-Yu Tsai and committed by
Paolo Abeni
d3c58b65 f749448c

+4 -1
+4 -1
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
··· 1737 1737 /* If the stmmac is not already selected as gmac4, 1738 1738 * then make sure we fallback to gmac. 1739 1739 */ 1740 - if (!plat_dat->has_gmac4) 1740 + if (!plat_dat->has_gmac4) { 1741 1741 plat_dat->has_gmac = true; 1742 + plat_dat->rx_fifo_size = 4096; 1743 + plat_dat->tx_fifo_size = 2048; 1744 + } 1742 1745 1743 1746 plat_dat->set_clk_tx_rate = rk_set_clk_tx_rate; 1744 1747