lkml.org 
[lkml]   [2014]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 5/9] rsxx: Use pci_enable_msix_range() instead of pci_enable_msix()
Date
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() and pci_enable_msix_range()
interfaces.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Joshua Morris <josh.h.morris@us.ibm.com>
Cc: Philip Kelleher <pjk1939@linux.vnet.ibm.com>
Cc: linux-pci@vger.kernel.org
---
drivers/block/rsxx/core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c
index a8de2ee..76c8124 100644
--- a/drivers/block/rsxx/core.c
+++ b/drivers/block/rsxx/core.c
@@ -880,8 +880,8 @@ static int rsxx_pci_probe(struct pci_dev *dev,
spin_unlock_irq(&card->irq_lock);

if (!force_legacy) {
- st = pci_enable_msi(dev);
- if (st)
+ st = pci_enable_msi_range(dev, 1, 1);
+ if (st < 0)
dev_warn(CARD_TO_DEV(card),
"Failed to enable MSI\n");
}
--
1.7.7.6


\
 
 \ /
  Last update: 2014-02-19 11:02    [W:1.196 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site