crypto: inside-secure - use PCI_IRQ_MSI_TYPES where appropriate
Subsystems (2)
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.
Signed-off-by Piotr Stankiewicz <[email protected]>
Reviewed-by Andy Shevchenko <[email protected]>
--- drivers/crypto/inside-secure/safexcel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/inside-secure/safexcel.c +1 -1
@@ -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
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.
Signed-off-by Piotr Stankiewicz <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>
Reviewed-by Antoine Tenart <[email protected]>
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@@ -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
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.
Signed-off-by Piotr Stankiewicz <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Reviewed-by Antoine Tenart <[email protected]>
Acked-by Herbert Xu <[email protected]>
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