lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAhV-H6RS7CZOzggJOxRg9gR8rHA=7Bd54FBapEtyap26+7rPg@mail.gmail.com>
Date: Wed, 23 Apr 2025 09:01:42 +0800
From: Huacai Chen <chenhuacai@...nel.org>
To: Paolo Abeni <pabeni@...hat.com>
Cc: Yanteng Si <si.yanteng@...ux.dev>, Huacai Chen <chenhuacai@...ngson.cn>, 
	Andrew Lunn <andrew+netdev@...n.ch>, "David S . Miller" <davem@...emloft.net>, 
	Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, 
	Feiyang Chen <chris.chenfeiyang@...il.com>, loongarch@...ts.linux.dev, 
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org, 
	Andrew Lunn <andrew@...n.ch>, Henry Chen <chenx97@...c.io>, Biao Dong <dongbiao@...ngson.cn>, 
	Baoqi Zhang <zhangbaoqi@...ngson.cn>
Subject: Re: [PATCH net-next V2 2/3] net: stmmac: dwmac-loongson: Add new
 multi-chan IP core support

On Tue, Apr 22, 2025 at 9:27 PM Paolo Abeni <pabeni@...hat.com> wrote:
>
> On 4/22/25 4:29 AM, Yanteng Si wrote:
> > 在 4/21/25 12:20 PM, Huacai Chen 写道:
> >> On Mon, Apr 21, 2025 at 10:04 AM Yanteng Si <si.yanteng@...ux.dev> wrote:
> >>>> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
> >>>> index 2fb7a137b312..57917f26ab4d 100644
> >>>> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
> >>>> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
> >>>> @@ -68,10 +68,11 @@
> >>>>
> >>>>    #define PCI_DEVICE_ID_LOONGSON_GMAC 0x7a03
> >>>>    #define PCI_DEVICE_ID_LOONGSON_GNET 0x7a13
> >>>> -#define DWMAC_CORE_LS_MULTICHAN      0x10    /* Loongson custom ID */
> >>>> -#define CHANNEL_NUM                  8
> >>>> +#define DWMAC_CORE_MULTICHAN_V1      0x10    /* Loongson custom ID 0x10 */
> >>>> +#define DWMAC_CORE_MULTICHAN_V2      0x12    /* Loongson custom ID 0x12 */
> >>>>
> >>>>    struct loongson_data {
> >>>> +     u32 multichan;
> >>> In order to make the logic clearer, I suggest splitting this patch.:
> >>>
> >>>
> >>> 2/4  Add multichan for loongson_data
> >>>
> >>> 3/4 Add new multi-chan IP core support
> >> I don't think the patch is unclear now, the multichan flag is really a
> >> combination of DWMAC_CORE_MULTICHAN_V1 and DWMAC_CORE_MULTICHAN_V2.
> > OK, please describe this code modification in the commit message.
>
> @Huacai, please extend the commit message, as per Yanteng's request.
Sure, will do later.

Huacai

>
> Thanks,
>
> Paolo
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ