Commit 0fbb3726 authored by Len Brown's avatar Len Brown

Merge branch 'ec' into test

parents 47bf31ad c0ff1772
...@@ -793,6 +793,12 @@ static int __init acpi_bus_init(void) ...@@ -793,6 +793,12 @@ static int __init acpi_bus_init(void)
goto error1; goto error1;
} }
/*
* Maybe EC region is required at bus_scan/acpi_get_devices. So it
* is necessary to enable it as early as possible.
*/
acpi_boot_ec_enable();
printk(KERN_INFO PREFIX "Interpreter enabled\n"); printk(KERN_INFO PREFIX "Interpreter enabled\n");
/* Initialize sleep structures */ /* Initialize sleep structures */
......
This diff is collapsed.
...@@ -1565,7 +1565,6 @@ static int acpi_bus_scan_fixed(struct acpi_device *root) ...@@ -1565,7 +1565,6 @@ 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)
{ {
...@@ -1599,9 +1598,6 @@ static int __init acpi_scan_init(void) ...@@ -1599,9 +1598,6 @@ static int __init acpi_scan_init(void)
*/ */
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);
......
...@@ -101,6 +101,7 @@ extern int acpi_power_nocheck; ...@@ -101,6 +101,7 @@ extern int acpi_power_nocheck;
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
#ifdef CONFIG_ACPI_EC #ifdef CONFIG_ACPI_EC
int acpi_ec_ecdt_probe(void); int acpi_ec_ecdt_probe(void);
int acpi_boot_ec_enable(void);
#endif #endif
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment