On Thu, Nov 12, 2026 at 5:41 PM Arun Iyengar via B4 Relay
[off-list ref] wrote:
From: Arun Iyengar <redacted>
The EMAC RX_CTL1 RX_TH field (bits 5:4) encodes 00 = 64 bytes and
01 = 32 bytes (H616 user manual v1.0, 6.5.10; 10 = 96 and 11 = 128 bytes
as in the driver). The driver has the first two swapped.
The values are only used in RX threshold mode, which stmmac selects only
when the snps,force_thresh_dma_mode property is set. No Allwinner device
tree sets it, so no in-tree board is affected.
Fixes: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i")
Signed-off-by: Arun Iyengar <redacted>
Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Checked A64, H3, H6 user manuals as well.
The original chip this came in, the A83T, the manual for it doesn't have
the bits for this register.