GenWQE: Use pci_enable_msi_exact() instead of pci_enable_msi_block()
Subsystems (2)
PATCH 1/1 GenWQE: Use pci_enable_msi_exact() instead of pci_enable_msi_block()
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() or pci_enable_msi_exact() and pci_enable_msix_range() or pci_enable_msix_exact() interfaces.
--- drivers/misc/genwqe/card_utils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/genwqe/card_utils.c +1 -1
@@ -628,7 +628,7 @@ int genwqe_set_interrupt_capability(struct genwqe_dev *cd, int count)int rc;struct pci_dev *pci_dev = cd->pci_dev; - rc =pci_enable_msi_block (pci_dev, count); + rc =pci_enable_msi_exact (pci_dev, count);if (rc ==0 ) cd->flags |=GENWQE_FLAG_MSI_ENABLED ;return rc;
Signature · 1 line
1.7.7.6
Hi Alexander,
Am Mittwoch, den 02.04.2014, 13:52 +0200 schrieb Alexander Gordeev:
Quoted 19 lines
As result of deprecation of MSI-X/MSI enablement functions
pci_enable_msix()andpci_enable_msi_block()all drivers using these two interfaces need to be updated to use the newpci_enable_msi_range()orpci_enable_msi_exact()andpci_enable_msix_range()orpci_enable_msix_exact()interfaces.Signed-off-by Alexander Gordeev <[email protected]>Cc Frank Haverkamp <[email protected]>Cc Greg Kroah-Hartman <[email protected]>--- drivers/misc/genwqe/card_utils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/misc/genwqe/card_utils.c +0
-0
drivers/misc/genwqe/card_utils.c int genwqe_set_interrupt_capability(struct genwqe_dev *cd, int count) · line 634
Quoted 8 lines
drivers/misc/genwqe/card_utils.c +1
-1@@ -628,7 +628,7 @@ int genwqe_set_interrupt_capability(struct genwqe_dev *cd, int count)int rc;struct pci_dev *pci_dev = cd->pci_dev; - rc =pci_enable_msi_block (pci_dev, count); + rc =pci_enable_msi_exact (pci_dev, count);if (rc ==0 ) cd->flags |=GENWQE_FLAG_MSI_ENABLED ;return rc;
fine with me, if it works like it did before.
Quoted 7 lines · Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions
pci_enable_msix()andpci_enable_msi_block()all drivers using these two interfaces need to be updated to use the newpci_enable_msi_range()orpci_enable_msi_exact()andpci_enable_msix_range()orpci_enable_msix_exact()interfaces.
Quoted 6 lines
Signed-off-by Alexander Gordeev <[email protected]>Cc Frank Haverkamp <[email protected]>Cc Greg Kroah-Hartman <[email protected]>--- drivers/misc/genwqe/card_utils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
I forgot to CC linux-pci mailing list.
I will resend this patch with Frank's ACK after v3.15-rc1.
Thanks!
Signature · 3 lines
Regards, Alexander Gordeev [email protected]