Re: [PATCH net-next v13 13/15] net: stmmac: dwmac-loongson: Drop pci_enable/disable_msi temporarily
From: Yanteng Si <hidden>
Date: 2024-07-04 09:32:25
在 2024/7/1 09:17, Serge Semin 写道:
quoted
[PATCH net-next v13 13/15] net: stmmac: dwmac-loongson: Drop pci_enable/disable_msi temporarilyYou don't drop the methods call "temporarily" but forever. So fix the subject like this please: [PATCH net-next v13 13/15] net: stmmac: dwmac-loongson: Drop pci_enable_msi/disable_msi methods call I understand that you meant that the MSI IRQs support will be added later in framework of another commit and for the multi-channel device case. But mentioning that in a way you did makes the commit log more confusing than better explaining the change. On Wed, May 29, 2024 at 06:21:08PM +0800, Yanteng Si wrote:quoted
The LS2K2000 patch added later will alloc vectors, so let's remove pci_enable/disable_msi temporarily to prepare for later calls to pci_alloc_irq_vectors/pci_free_irq_vectors. This does not affect the work of gmac devices, as they actually use intx.As I mentioned in v12 AFAICS the MSI IRQs haven't been utilized on the Loongseon GMAC devices so far since the IRQ numbers have been retrieved directly from device DT-node. That's what you should have mentioned in the log. Like this: "The Loongson GMAC driver currently doesn't utilize the MSI IRQs, but retrieves the IRQs specified in the device DT-node. Let's drop the direct pci_enable_msi()/pci_disable_msi() calls then as redundant." If what I said was correct and MSIs enable wasn't required for the platform IRQs to work, then please use the log and move this patch to being submitted between [PATCH net-next v13 04/15] net: stmmac: dwmac-loongson: Drop duplicated hash-based filter size init and [PATCH net-next v13 05/15] net: stmmac: dwmac-loongson: Use PCI_DEVICE_DATA() macro for device identification so the redundant pci_enable_msi()/pci_disable_msi() code wouldn't be getting on a way of the subsequent preparation changes.
Ok, Thanks! Thanks, Yanteng