lkml.org 
[lkml]   [2005]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.
From
Date
    Alan> I ask the card which interrupt line it was given at
Alan> boot-time:

Alan> pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &softp->interrupt_line);

Alan> Then I request an IRQ:

Alan> request_irq(softp->interrupt_line, sseintr, SA_INTERRUPT, "sse", softp);

Don't do that. The kernel may need you to use a different interrupt
number than you read from the PCI config header. Use dev->irq, as in

request_irq(dev->irq, sseintr, SA_SHIRQ | SA_INTERRUPT, "sse", softp);

Also, make sure that you do pci_enable_device(dev) before you look at
dev->irq, since the field will not be initialized until you do that.

- R.
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.141 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site