From 59cfad395261d398bd7d84b5bf67fe04ecb84c2c Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Fri, 31 Aug 2007 09:40:17 +0000 Subject: [PATCH] Get irq number from PCI subsystem after irq routing mechanism (like ACPI) set it up. Otherwise we get irq number from legacy BIOS range and proper irq (other number from PCI range) is not handled or handled by other driver - - VERY VERY BAD THINGS happen then. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@178 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla_isp/linux/isp_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qla_isp/linux/isp_pci.c b/qla_isp/linux/isp_pci.c index 8b902ab13..c9c41ea6f 100644 --- a/qla_isp/linux/isp_pci.c +++ b/qla_isp/linux/isp_pci.c @@ -840,7 +840,6 @@ isplinux_pci_init(struct Scsi_Host *host) isp_pci_mapmem &= ~(1 << isp->isp_unit); #endif } - irq = isp_pci->pci_dev->irq; if (vid != PCI_VENDOR_ID_QLOGIC) { printk("%s: 0x%04x is not QLogic's PCI Vendor ID\n", loc, vid); @@ -911,6 +910,7 @@ isplinux_pci_init(struct Scsi_Host *host) return (1); } + irq = isp_pci->pci_dev->irq; (void) PRDW(isp_pci, PCI_COMMAND, &cmd); if ((cmd & PCI_CMD_ISP) != pci_cmd_isp) {