Skip to contentSkip to conversation

dmaengine: dw-edma: use PCI_IRQ_MSI_TYPES where appropriate

PATCH Applied Piotr Stankiewicz 2 participants 3 messages Jun 2, 2020 – Jun 16, 2020

Subsystems (2)

v1 of 4 Applied Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 6/15 dmaengine: dw-edma: use PCI_IRQ_MSI_TYPES where appropriate

Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it.

---
 drivers/dma/dw-edma/dw-edma-pcie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-edma/dw-edma-pcie.c +1 -1
index dc85f55e1bb8..46defe30ac25 100644
@@ -117,7 +117,7 @@ static int dw_edma_pcie_probe(struct pci_dev *pdev,
 
 	/* IRQs allocation */
 	nr_irqs = pci_alloc_irq_vectors(pdev, 1, pdata->irqs,
-					PCI_IRQ_MSI | PCI_IRQ_MSIX);
+					PCI_IRQ_MSI_TYPES);
 	if (nr_irqs < 1) {
 		pci_err(pdev, "fail to alloc IRQ vector (number of IRQs=%u)\n",
 			nr_irqs);
Signature · 1 line
2.17.2
maintainer Applied
#1 lore raw
Quoted 2 lines · Piotr Stankiewicz

Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it.

Applied, thanks

Signature · 1 line
~Vinod
maintainer Acked-by
#2 lore raw
Quoted 5 lines · Vinod Koul
Quoted 2 lines · Piotr Stankiewicz

Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it.

Applied, thanks

Dropped now.. PCI_IRQ_MSI_TYPES is not upstream yet!

Feel free to take in PCI tree with my ack

Signature · 1 line
~Vinod