Restore the irq=0 => irq=255 hack to pci_cfgintr_search(). Just having
it in pci_cfgregread() wasn't sufficent on at least the HP Omnibook 500. Reviewed by: imp
This commit is contained in:
parent
48bc02848a
commit
4432c323fd
@ -408,6 +408,14 @@ pci_cfgintr_search(struct PIR_entry *pe, int bus, int device, int matchpin, int
|
||||
(pci_get_slot(*childp) == device) &&
|
||||
(pci_get_intpin(*childp) == matchpin)) {
|
||||
irq = pci_get_irq(*childp);
|
||||
/*
|
||||
* Some BIOS writers seem to want to ignore the spec and put
|
||||
* 0 in the intline rather than 255 to indicate none. Once
|
||||
* we've found one that matches, we break because there can
|
||||
* be no others (which is why test looks a little odd).
|
||||
*/
|
||||
if (irq == 0)
|
||||
irq = 255;
|
||||
if (irq != 255)
|
||||
PRVERB(("pci_cfgintr_search: linked (%x) to configured irq %d at %d:%d:%d\n",
|
||||
pe->pe_intpin[pin - 1].link, irq,
|
||||
|
@ -408,6 +408,14 @@ pci_cfgintr_search(struct PIR_entry *pe, int bus, int device, int matchpin, int
|
||||
(pci_get_slot(*childp) == device) &&
|
||||
(pci_get_intpin(*childp) == matchpin)) {
|
||||
irq = pci_get_irq(*childp);
|
||||
/*
|
||||
* Some BIOS writers seem to want to ignore the spec and put
|
||||
* 0 in the intline rather than 255 to indicate none. Once
|
||||
* we've found one that matches, we break because there can
|
||||
* be no others (which is why test looks a little odd).
|
||||
*/
|
||||
if (irq == 0)
|
||||
irq = 255;
|
||||
if (irq != 255)
|
||||
PRVERB(("pci_cfgintr_search: linked (%x) to configured irq %d at %d:%d:%d\n",
|
||||
pe->pe_intpin[pin - 1].link, irq,
|
||||
|
@ -408,6 +408,14 @@ pci_cfgintr_search(struct PIR_entry *pe, int bus, int device, int matchpin, int
|
||||
(pci_get_slot(*childp) == device) &&
|
||||
(pci_get_intpin(*childp) == matchpin)) {
|
||||
irq = pci_get_irq(*childp);
|
||||
/*
|
||||
* Some BIOS writers seem to want to ignore the spec and put
|
||||
* 0 in the intline rather than 255 to indicate none. Once
|
||||
* we've found one that matches, we break because there can
|
||||
* be no others (which is why test looks a little odd).
|
||||
*/
|
||||
if (irq == 0)
|
||||
irq = 255;
|
||||
if (irq != 255)
|
||||
PRVERB(("pci_cfgintr_search: linked (%x) to configured irq %d at %d:%d:%d\n",
|
||||
pe->pe_intpin[pin - 1].link, irq,
|
||||
|
Loading…
Reference in New Issue
Block a user