[PATCH net-next v2 0/4] net: stmmac: Enable Per DMA Channel interrupt

From: Leong Ching Swee
Date: Fri Jan 05 2024 - 02:09:56 EST


From: Swee Leong Ching <leong.ching.swee@xxxxxxxxx>

Hi,
Add Per DMA Channel interrupt feature for DWXGMAC IP.

Patchset (link below) contains per DMA channel interrupt, But it was
achieved.
https://lore.kernel.org/lkml/20230821203328.GA2197059-
robh@xxxxxxxxxx/t/#m849b529a642e1bff89c05a07efc25d6a94c8bfb4

Some of the changes in this patchset are based on reviewer comment on
patchset mentioned beforehand.

changelog v2:
*extend irq_name array to 9
*add empty line after int i
*avoid polluting rx_irq/tx_irq array with temporary variable
*move tx/rx IRQ loop to bottom of stmmac_get_platform_resource()
*rename stmmac_xx_queue_interrupt() to stmmac_dma_xx_interrupt()
*fix error message in stmmac_request_irq_multi()
*move STMMAC_FLAG_MULTI_IRQ_EN handling to glue driver

Swee Leong Ching (4):
dt-bindings: net: snps,dwmac: per channel irq
net: stmmac: Make MSI interrupt routine generic
net: stmmac: Add support for TX/RX channel interrupt
net: stmmac: Use interrupt mode INTM=1 for per channel irq

.../devicetree/bindings/net/snps,dwmac.yaml | 24 ++++++++++----
.../net/ethernet/stmicro/stmmac/dwmac-intel.c | 4 +--
.../ethernet/stmicro/stmmac/dwmac-socfpga.c | 3 ++
.../net/ethernet/stmicro/stmmac/dwmac4_dma.c | 2 +-
.../net/ethernet/stmicro/stmmac/dwxgmac2.h | 3 ++
.../ethernet/stmicro/stmmac/dwxgmac2_dma.c | 32 +++++++++++--------
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 30 ++++++++---------
.../ethernet/stmicro/stmmac/stmmac_platform.c | 28 ++++++++++++++++
include/linux/stmmac.h | 4 +--
9 files changed, 90 insertions(+), 40 deletions(-)

--
2.34.1