Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3469e901
Commit
3469e901
authored
Jul 09, 2002
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a warning
Fix a typo Use the default bios-given IRQ if ACPI can't find one at all (Dominik B)
parent
336ee08b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
drivers/acpi/pci_irq.c
drivers/acpi/pci_irq.c
+20
-10
No files found.
drivers/acpi/pci_irq.c
View file @
3469e901
/*
* pci_irq.c - ACPI PCI Interrupt Routing ($Revision:
7
$)
* pci_irq.c - ACPI PCI Interrupt Routing ($Revision:
10
$)
*
* Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
* Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
...
...
@@ -250,8 +250,13 @@ acpi_pci_irq_lookup (
return_VALUE
(
0
);
}
if
(
!
entry
->
irq
&&
entry
->
link
.
handle
)
if
(
!
entry
->
irq
&&
entry
->
link
.
handle
)
{
entry
->
irq
=
acpi_pci_link_get_irq
(
entry
->
link
.
handle
,
entry
->
link
.
index
);
if
(
!
entry
->
irq
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_WARN
,
"Invalid IRQ link routing entry
\n
"
));
return_VALUE
(
0
);
}
}
else
if
(
!
entry
->
irq
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Invalid static routing entry (IRQ 0)
\n
"
));
return_VALUE
(
0
);
...
...
@@ -323,7 +328,7 @@ acpi_pci_irq_enable (
/*
* First we check the PCI IRQ routing table (PRT) for an IRQ. PRT
* values override any BIOS-assi
ng
ed IRQs set during boot.
* values override any BIOS-assi
gn
ed IRQs set during boot.
*/
irq
=
acpi_pci_irq_lookup
(
0
,
dev
->
bus
->
number
,
PCI_SLOT
(
dev
->
devfn
),
pin
);
...
...
@@ -334,13 +339,18 @@ acpi_pci_irq_enable (
if
(
!
irq
)
irq
=
acpi_pci_irq_derive
(
dev
,
pin
);
if
(
irq
)
dev
->
irq
=
irq
;
if
(
!
dev
->
irq
)
{
printk
(
KERN_WARNING
PREFIX
"No IRQ known for interrupt pin %c of device %s
\n
"
,
(
'A'
+
pin
),
dev
->
slot_name
);
return_VALUE
(
0
);
}
/*
* No IRQ known to the ACPI subsystem - maybe the BIOS /
* driver reported one, then use it. Exit in any case.
*/
if
(
!
irq
)
{
printk
(
KERN_WARNING
PREFIX
"No IRQ known for interrupt pin %c of device %s"
,
(
'A'
+
pin
),
dev
->
slot_name
);
if
(
dev
->
irq
)
printk
(
" - using IRQ %d
\n
"
,
dev
->
irq
);
return_VALUE
(
dev
->
irq
);
}
dev
->
irq
=
irq
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Device %s using IRQ %d
\n
"
,
dev
->
slot_name
,
dev
->
irq
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment