[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <636a0d00-3141-4d4d-85af-5232fd5b1820@loongson.cn>
Date: Fri, 19 Apr 2024 17:02:17 +0800
From: Yanteng Si <siyanteng@...ngson.cn>
To: Serge Semin <fancer.lancer@...il.com>
Cc: andrew@...n.ch, hkallweit1@...il.com, peppe.cavallaro@...com,
alexandre.torgue@...s.st.com, joabreu@...opsys.com, Jose.Abreu@...opsys.com,
chenhuacai@...nel.org, linux@...linux.org.uk, guyinggang@...ngson.cn,
netdev@...r.kernel.org, chris.chenfeiyang@...il.com, siyanteng01@...il.com
Subject: Re: [PATCH net-next v11 2/6] net: stmmac: Add multi-channel support
>>
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
>> index daf79cdbd3ec..f161ec9ac490 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
>> @@ -70,15 +70,17 @@ static void dwmac1000_dma_axi(void __iomem *ioaddr, struct stmmac_axi *axi)
>> writel(value, ioaddr + DMA_AXI_BUS_MODE);
>> }
>>
>> -static void dwmac1000_dma_init(void __iomem *ioaddr,
>> - struct stmmac_dma_cfg *dma_cfg, int atds)
>> +static void dwmac1000_dma_init_channel(struct stmmac_priv *priv,
>> + void __iomem *ioaddr,
>> + struct stmmac_dma_cfg *dma_cfg, u32 chan)
> please create a pre-requisite/preparation patch with the atds argument
> movement to the stmmac_dma_cfg structure as I suggested in v8:
> https://lore.kernel.org/netdev/yzs6eqx2swdhaegxxcbijhtb5tkhkvvyvso2perkessv5swq47@ywmea5xswsug/
> That will make this patch looking simpler and providing a single
> coherent change.
OK.
>> /* Clear the interrupt by writing a logic 1 to the CSR5[15-0] */
>> - writel((intr_status & 0x1ffff), ioaddr + DMA_STATUS);
>> + writel((intr_status & 0x7ffff), ioaddr + DMA_CHAN_STATUS(chan));
> I'll ask once again:
>
> "Isn't the mask change going to be implemented in the framework of the
> Loongson-specific DMA-interrupt handler in some of the further
> patches?"
>
The future is not going to change.
Thanks,
Yanteng
>
Powered by blists - more mailing lists