]> www.infradead.org Git - users/hch/misc.git/commit
net: stmmac: dwmac-rk: Provide FIFO sizes for DWMAC 1000
authorChen-Yu Tsai <wens@csie.org>
Wed, 12 Mar 2025 16:34:26 +0000 (00:34 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 19 Mar 2025 17:30:34 +0000 (18:30 +0100)
commitd3c58b656c97de195df3889c55ee9e91a8d65b6c
treed97648663ff0f9a44076f48c0c4377144e1cd657
parentf749448ce9f13499b99384dbfab287fe55bc8f3c
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>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c