Subject: Re: [PATCH net-next V3 2/3] net: stmmac: dwmac-loongson: Add new multi-chan IP core support

From: Yanteng Si <[email-masked]>
Date: Thu, 24 Apr 2025 15:35:07 +0800

在 4/24/25 3:22 PM, Huacai Chen 写道:
> Add a new multi-chan IP core (0x12) support which is used in Loongson-
> 2K3000/Loongson-3B6000M. Compared with the 0x10 core, the new 0x12 core
> reduces channel numbers from 8 to 4, but checksum is supported for all
> channels.
>
> Add a "multichan" flag to loongson_data, so that we can simply use a
> "if (ld->multichan)" condition rather than the complicated condition
> "if (ld->loongson_id == DWMAC_CORE_MULTICHAN_V1 || ld->loongson_id ==
> DWMAC_CORE_MULTICHAN_V2)".
>
> Reviewed-by: Andrew Lunn <[email-masked]>
> Tested-by: Henry Chen <[email-masked]>
> Tested-by: Biao Dong <[email-masked]>
> Signed-off-by: Baoqi Zhang <[email-masked]>
> Signed-off-by: Huacai Chen <[email-masked]>

Reviewed-by: Yanteng Si <[email-masked]>

Thanks,

Yanteng