Skip to contentSkip to conversation

crypto: inside-secure - use PCI_IRQ_MSI_TYPES where appropriate

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

Subsystems (2)

v1 of 4 Applied Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 5/15 crypto: inside-secure - 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/crypto/inside-secure/safexcel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/inside-secure/safexcel.c +1 -1
index 2cb53fbae841..1b2faa2a6ab0 100644
@@ -1567,7 +1567,7 @@ static int safexcel_probe_generic(void *pdev,
 		ret = pci_alloc_irq_vectors(pci_pdev,
 					    priv->config.rings + 1,
 					    priv->config.rings + 1,
-					    PCI_IRQ_MSI | PCI_IRQ_MSIX);
+					    PCI_IRQ_MSI_TYPES);
 		if (ret < 0) {
 			dev_err(dev, "Failed to allocate PCI MSI interrupts\n");
 			return ret;
Signature · 1 line
2.17.2
Reviewed-by on v1 5/15
#1 lore raw

Hello Piotr,

Quoting Piotr Stankiewicz (2020-06-02 11:20:19)

Quoted 5 lines

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

Thanks,
Antoine

Quoted 20 lines
---
 drivers/crypto/inside-secure/safexcel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/inside-secure/safexcel.c +1 -1
index 2cb53fbae841..1b2faa2a6ab0 100644
@@ -1567,7 +1567,7 @@ static int safexcel_probe_generic(void *pdev,
                ret = pci_alloc_irq_vectors(pci_pdev,
                                            priv->config.rings + 1,
                                            priv->config.rings + 1,
-                                           PCI_IRQ_MSI | PCI_IRQ_MSIX);
+                                           PCI_IRQ_MSI_TYPES);
                if (ret < 0) {
                        dev_err(dev, "Failed to allocate PCI MSI interrupts\n");
                        return ret;
Signature · 1 line
2.17.2
Signature · 3 lines
Antoine Ténart, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
maintainer Acked-by
#2 lore raw
Quoted 9 lines · Antoine Tenart

Quoting Piotr Stankiewicz (2020-06-02 11:20:19)

Quoted 5 lines

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

Thanks,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt