On Thu, 9 May 2002, Jeff Garzik wrote:
> > if (p->irq != PARPORT_IRQ_NONE) {
> > if (request_irq (p->irq, parport_pc_interrupt,
> >- 0, p->name, p)) {
> >+ SA_SHIRQ, p->name, p)) {
> > printk (KERN_WARNING "%s: irq %d in use, "
> > "resorting to polled operation\n",
> > p->name, p->irq);
> >
>
> I don't think you want to do this unconditionally... probably breaks
> older setups.
I'd think perhaps if a PCI device grabs a legacy parallel port IRQ, which
shouldn't happen, or if someone misconfigured a non PNP device.
> >
> >--- linux-2.4.19-pre7-ac3/drivers/parport/parport_serial.c.orig Sun May 5 14:24:36 2002
> >+++ linux-2.4.19-pre7-ac3/drivers/parport/parport_serial.c Thu May 9 09:46:58 2002
> >@@ -249,7 +249,7 @@
> > int success = 0;
> >
> > if (cards[i].preinit_hook &&
> >- cards[i].preinit_hook (dev, PARPORT_IRQ_NONE, PARPORT_DMA_NONE))
> >+ cards[i].preinit_hook (dev, dev->irq, PARPORT_DMA_NONE))
> > return -ENODEV;
> >
> > for (n = 0; n < cards[i].numports; n++) {
> >
>
> If parport_serial is 100% PCI (I'm too lazy to check), this should be ok...
Yep.
Thanks,
Zwane
-- http://function.linuxpower.ca- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:11 EST