projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a89a04
)
If ACPI doesn't find an irq listed, don't accept 0 as a valid PCI irq.
author
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 2 Jul 2005 17:35:33 +0000
(10:35 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 2 Jul 2005 17:35:33 +0000
(10:35 -0700)
That zero just means that nothing else found any irq information either.
drivers/acpi/pci_irq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/pci_irq.c
b/drivers/acpi/pci_irq.c
index 8dbf802ee7f819d9c885247a35d0d736ca4a5979..d1f42b9728214cb31a7a2584b802325029d3fed5 100644
(file)
--- a/
drivers/acpi/pci_irq.c
+++ b/
drivers/acpi/pci_irq.c
@@
-433,7
+433,7
@@
acpi_pci_irq_enable (
printk(KERN_WARNING PREFIX "PCI Interrupt %s[%c]: no GSI",
pci_name(dev), ('A' + pin));
/* Interrupt Line values above 0xF are forbidden */
- if (dev->irq >
=
0 && (dev->irq <= 0xF)) {
+ if (dev->irq > 0 && (dev->irq <= 0xF)) {
printk(" - using IRQ %d\n", dev->irq);
acpi_register_gsi(dev->irq, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW);
return_VALUE(0);