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
ec8f3c84
Commit
ec8f3c84
authored
Oct 05, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove pci_find_subsys() calls from acpi code.
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
21e9448d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
drivers/acpi/processor.c
drivers/acpi/processor.c
+10
-5
No files found.
drivers/acpi/processor.c
View file @
ec8f3c84
...
...
@@ -213,11 +213,13 @@ acpi_processor_errata_piix4 (
* each IDE controller's DMA status to make sure we catch all
* DMA activity.
*/
dev
=
pci_
find
_subsys
(
PCI_VENDOR_ID_INTEL
,
dev
=
pci_
get
_subsys
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82371AB
,
PCI_ANY_ID
,
PCI_ANY_ID
,
NULL
);
if
(
dev
)
if
(
dev
)
{
errata
.
piix4
.
bmisx
=
pci_resource_start
(
dev
,
4
);
pci_dev_put
(
dev
);
}
/*
* Type-F DMA
...
...
@@ -228,7 +230,7 @@ acpi_processor_errata_piix4 (
* disable C3 support if this is enabled, as some legacy
* devices won't operate well if fast DMA is disabled.
*/
dev
=
pci_
find
_subsys
(
PCI_VENDOR_ID_INTEL
,
dev
=
pci_
get
_subsys
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82371AB_0
,
PCI_ANY_ID
,
PCI_ANY_ID
,
NULL
);
if
(
dev
)
{
...
...
@@ -236,6 +238,7 @@ acpi_processor_errata_piix4 (
pci_read_config_byte
(
dev
,
0x77
,
&
value2
);
if
((
value1
&
0x80
)
||
(
value2
&
0x80
))
errata
.
piix4
.
fdma
=
1
;
pci_dev_put
(
dev
);
}
break
;
...
...
@@ -267,10 +270,12 @@ acpi_processor_errata (
/*
* PIIX4
*/
dev
=
pci_
find
_subsys
(
PCI_VENDOR_ID_INTEL
,
dev
=
pci_
get
_subsys
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82371AB_3
,
PCI_ANY_ID
,
PCI_ANY_ID
,
NULL
);
if
(
dev
)
if
(
dev
)
{
result
=
acpi_processor_errata_piix4
(
dev
);
pci_dev_put
(
dev
);
}
return_VALUE
(
result
);
}
...
...
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