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
nexedi
linux
Commits
bd326267
Commit
bd326267
authored
Jun 17, 2004
by
Len Brown
Committed by
Len Brown
Jun 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] avoid spurious interrupts on VIA
http://bugzilla.kernel.org/show_bug.cgi?id=2243
parent
06648ed5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
+3
-19
drivers/acpi/pci_link.c
drivers/acpi/pci_link.c
+3
-19
No files found.
drivers/acpi/pci_link.c
View file @
bd326267
...
...
@@ -308,31 +308,12 @@ acpi_pci_link_set (
struct
acpi_resource
end
;
}
resource
;
struct
acpi_buffer
buffer
=
{
sizeof
(
resource
)
+
1
,
&
resource
};
int
i
=
0
;
int
valid
=
0
;
ACPI_FUNCTION_TRACE
(
"acpi_pci_link_set"
);
if
(
!
link
||
!
irq
)
return_VALUE
(
-
EINVAL
);
/* We don't check irqs the first time around */
if
(
link
->
irq
.
setonboot
)
{
/* See if we're already at the target IRQ. */
if
(
irq
==
link
->
irq
.
active
)
return_VALUE
(
0
);
/* Make sure the target IRQ in the list of possible IRQs. */
for
(
i
=
0
;
i
<
link
->
irq
.
possible_count
;
i
++
)
{
if
(
irq
==
link
->
irq
.
possible
[
i
])
valid
=
1
;
}
if
(
!
valid
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"Target IRQ %d invalid
\n
"
,
irq
));
return_VALUE
(
-
EINVAL
);
}
}
memset
(
&
resource
,
0
,
sizeof
(
resource
));
switch
(
link
->
irq
.
resource_type
)
{
...
...
@@ -703,6 +684,9 @@ acpi_pci_link_add (
acpi_link
.
count
++
;
end:
/* disable all links -- to be activated on use */
acpi_ut_evaluate_object
(
link
->
handle
,
"_DIS"
,
0
,
NULL
);
if
(
result
)
kfree
(
link
);
...
...
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