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
45621201
Commit
45621201
authored
Jan 11, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull bugzilla-9627 into release branch
parents
6b74c925
c04209a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
drivers/acpi/ec.c
drivers/acpi/ec.c
+13
-1
drivers/acpi/scan.c
drivers/acpi/scan.c
+6
-0
No files found.
drivers/acpi/ec.c
View file @
45621201
...
@@ -892,6 +892,17 @@ static int acpi_ec_stop(struct acpi_device *device, int type)
...
@@ -892,6 +892,17 @@ static int acpi_ec_stop(struct acpi_device *device, int type)
return
0
;
return
0
;
}
}
int
__init
acpi_boot_ec_enable
(
void
)
{
if
(
!
boot_ec
||
boot_ec
->
handlers_installed
)
return
0
;
if
(
!
ec_install_handlers
(
boot_ec
))
{
first_ec
=
boot_ec
;
return
0
;
}
return
-
EFAULT
;
}
int
__init
acpi_ec_ecdt_probe
(
void
)
int
__init
acpi_ec_ecdt_probe
(
void
)
{
{
int
ret
;
int
ret
;
...
@@ -924,9 +935,10 @@ int __init acpi_ec_ecdt_probe(void)
...
@@ -924,9 +935,10 @@ int __init acpi_ec_ecdt_probe(void)
goto
error
;
goto
error
;
/* We really need to limit this workaround, the only ASUS,
/* We really need to limit this workaround, the only ASUS,
* which needs it, has fake EC._INI method, so use it as flag.
* which needs it, has fake EC._INI method, so use it as flag.
* Keep boot_ec struct as it will be needed soon.
*/
*/
if
(
ACPI_FAILURE
(
acpi_get_handle
(
boot_ec
->
handle
,
"_INI"
,
&
x
)))
if
(
ACPI_FAILURE
(
acpi_get_handle
(
boot_ec
->
handle
,
"_INI"
,
&
x
)))
goto
error
;
return
-
ENODEV
;
}
}
ret
=
ec_install_handlers
(
boot_ec
);
ret
=
ec_install_handlers
(
boot_ec
);
...
...
drivers/acpi/scan.c
View file @
45621201
...
@@ -1449,6 +1449,8 @@ static int acpi_bus_scan_fixed(struct acpi_device *root)
...
@@ -1449,6 +1449,8 @@ static int acpi_bus_scan_fixed(struct acpi_device *root)
return
result
;
return
result
;
}
}
int
__init
acpi_boot_ec_enable
(
void
);
static
int
__init
acpi_scan_init
(
void
)
static
int
__init
acpi_scan_init
(
void
)
{
{
int
result
;
int
result
;
...
@@ -1480,6 +1482,10 @@ static int __init acpi_scan_init(void)
...
@@ -1480,6 +1482,10 @@ static int __init acpi_scan_init(void)
* Enumerate devices in the ACPI namespace.
* Enumerate devices in the ACPI namespace.
*/
*/
result
=
acpi_bus_scan_fixed
(
acpi_root
);
result
=
acpi_bus_scan_fixed
(
acpi_root
);
/* EC region might be needed at bus_scan, so enable it now */
acpi_boot_ec_enable
();
if
(
!
result
)
if
(
!
result
)
result
=
acpi_bus_scan
(
acpi_root
,
&
ops
);
result
=
acpi_bus_scan
(
acpi_root
,
&
ops
);
...
...
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