IB/ipath: Fix IRQ for PCI Express HCAs
authorRoland Dreier <rolandd@cisco.com>
Tue, 12 Dec 2006 19:50:20 +0000 (11:50 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 12 Dec 2006 19:50:20 +0000 (11:50 -0800)
commit0a1336c8c93530b93c8ecd8c9882f5e528673cab
tree19834d4aeab09b42138db983c1f8e4a55e76ffe0
parentad1f9791e91511fcff21730e55ad8dbc375c79bb
IB/ipath: Fix IRQ for PCI Express HCAs

Commit 51f65ebc ("IB/ipath - program intconfig register using new HT
irq hook"), which fixed interrupts for HyperTransport HCAs, broke PCI
Express HCAs, because for those HCAs, the driver uses the value of
pdev->irq before pci_enable_msi() and ends up getting a totally bogus
IRQ number.  Fix this by using the value of pdev->irq after
pci_enable_msi().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_iba6120.c