[PATCH net-next v2 1/2] net: stmmac: dwmac-sun8i: Fix the RX_TH threshold encoding
Chen-Yu Tsai
wens at kernel.org
Thu Nov 12 05:32:34 PST 2026
On Thu, Nov 12, 2026 at 5:41 PM Arun Iyengar via B4 Relay
<devnull+aiyengar1990.gmail.com at kernel.org> wrote:
>
> From: Arun Iyengar <aiyengar1990 at gmail.com>
>
> 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 <aiyengar1990 at gmail.com>
Reviewed-by: Chen-Yu Tsai <wens at 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.
More information about the linux-arm-kernel
mailing list