[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.SOC.4.64.0903191525001.26750@math.ut.ee>
Date: Thu, 19 Mar 2009 15:33:14 +0200 (EET)
From: Meelis Roos <mroos@...ux.ee>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
cc: linux-kernel@...r.kernel.org
Subject: Re: Lava dual parallel PCI card IRQ problem
> You may need to stick a few printks in the port registration path to see
> why it made that decision.
Got it - it's a simple copypaste mistake:
+ irq = dev->irq;
+ if (irq == IRQ_NONE) {
+ printk (KERN_DEBUG
+ "PCI parallel port detected: %04x:%04x, I/O at %#lx(%#lx)\n",
+ parport_pc_pci_tbl[i + last_sio].vendor,
+ parport_pc_pci_tbl[i + last_sio].device,
+ io_lo, io_hi);
+ irq = PARPORT_IRQ_NONE;
+ } else {
+ printk (KERN_DEBUG
+ "PCI parallel port detected: %04x:%04x, I/O at %#lx(%#lx), IRQ %d\n",
+ parport_pc_pci_tbl[i + last_sio].vendor,
+ parport_pc_pci_tbl[i + last_sio].device,
+ io_lo, io_hi, irq);
+ irq = PARPORT_IRQ_NONE;
+ }
If I remove the second "irq = PARPORT_IRQ_NONE;" it starts to load fine.
Will test later with a rela printer attached.
--
Meelis Roos (mroos@...ux.ee)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists