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
6c0d6304
Commit
6c0d6304
authored
Sep 17, 2003
by
Len Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle BIOS with _CRS that fails (Jun Nakajima)
parent
2043727b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
drivers/acpi/pci_link.c
drivers/acpi/pci_link.c
+23
-6
No files found.
drivers/acpi/pci_link.c
View file @
6c0d6304
...
@@ -220,7 +220,6 @@ acpi_pci_link_check_current (
...
@@ -220,7 +220,6 @@ acpi_pci_link_check_current (
return
AE_CTRL_TERMINATE
;
return
AE_CTRL_TERMINATE
;
}
}
static
int
static
int
acpi_pci_link_get_current
(
acpi_pci_link_get_current
(
struct
acpi_pci_link
*
link
)
struct
acpi_pci_link
*
link
)
...
@@ -279,6 +278,28 @@ acpi_pci_link_get_current (
...
@@ -279,6 +278,28 @@ acpi_pci_link_get_current (
return_VALUE
(
result
);
return_VALUE
(
result
);
}
}
static
int
acpi_pci_link_try_get_current
(
struct
acpi_pci_link
*
link
,
int
irq
)
{
int
result
;
ACPI_FUNCTION_TRACE
(
"acpi_pci_link_try_get_current"
);
result
=
acpi_pci_link_get_current
(
link
);
if
(
result
&&
link
->
irq
.
active
)
{
return_VALUE
(
result
);
}
if
(
!
link
->
irq
.
active
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"No active IRQ resource found
\n
"
));
printk
(
KERN_WARNING
"_CRS returns NULL! Using IRQ %d for device (%s [%s]).
\n
"
,
irq
,
acpi_device_name
(
link
->
device
),
acpi_device_bid
(
link
->
device
));
link
->
irq
.
active
=
irq
;
}
return
0
;
}
static
int
static
int
acpi_pci_link_set
(
acpi_pci_link_set
(
...
@@ -361,7 +382,7 @@ acpi_pci_link_set (
...
@@ -361,7 +382,7 @@ acpi_pci_link_set (
}
}
/* Make sure the active IRQ is the one we requested. */
/* Make sure the active IRQ is the one we requested. */
result
=
acpi_pci_link_
get_current
(
link
);
result
=
acpi_pci_link_
try_get_current
(
link
,
irq
);
if
(
result
)
{
if
(
result
)
{
return_VALUE
(
result
);
return_VALUE
(
result
);
}
}
...
@@ -574,10 +595,6 @@ acpi_pci_link_add (
...
@@ -574,10 +595,6 @@ acpi_pci_link_add (
else
else
printk
(
" %d"
,
link
->
irq
.
possible
[
i
]);
printk
(
" %d"
,
link
->
irq
.
possible
[
i
]);
}
}
if
(
!
link
->
irq
.
active
)
printk
(
", disabled"
);
else
if
(
!
found
)
printk
(
", enabled at IRQ %d"
,
link
->
irq
.
active
);
printk
(
")
\n
"
);
printk
(
")
\n
"
);
/* TBD: Acquire/release lock */
/* TBD: Acquire/release lock */
...
...
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