View | Details | Raw Unified | Return to bug 11374 | Differences between
and this patch

Collapse All | Expand All

(-)linux-2.6/include/acpi/acpi_drivers.h (+1 lines)
Lines 100-105 int acpi_power_transition(struct acpi_de Link Here
100
   -------------------------------------------------------------------------- */
100
   -------------------------------------------------------------------------- */
101
#ifdef CONFIG_ACPI_EC
101
#ifdef CONFIG_ACPI_EC
102
int acpi_ec_ecdt_probe(void);
102
int acpi_ec_ecdt_probe(void);
103
int acpi_boot_ec_enable(void);
103
#endif
104
#endif
104
105
105
/* --------------------------------------------------------------------------
106
/* --------------------------------------------------------------------------
(-)linux-2.6/drivers/acpi/scan.c (-4 lines)
Lines 1545-1551 static int acpi_bus_scan_fixed(struct ac Link Here
1545
	return result;
1545
	return result;
1546
}
1546
}
1547
1547
1548
int __init acpi_boot_ec_enable(void);
1549
1548
1550
static int __init acpi_scan_init(void)
1549
static int __init acpi_scan_init(void)
1551
{
1550
{
Lines 1579-1587 static int __init acpi_scan_init(void) Link Here
1579
	 */
1578
	 */
1580
	result = acpi_bus_scan_fixed(acpi_root);
1579
	result = acpi_bus_scan_fixed(acpi_root);
1581
1580
1582
	/* EC region might be needed at bus_scan, so enable it now */
1583
	acpi_boot_ec_enable();
1584
1585
	if (!result)
1581
	if (!result)
1586
		result = acpi_bus_scan(acpi_root, &ops);
1582
		result = acpi_bus_scan(acpi_root, &ops);
1587
1583
(-)linux-2.6/drivers/acpi/bus.c (+6 lines)
Lines 749-754 static int __init acpi_bus_init(void) Link Here
749
		goto error1;
749
		goto error1;
750
	}
750
	}
751
751
752
	/*
753
	 * Maybe EC region is required at bus_scan/acpi_get_devices. So it
754
	 * is necessary to enable it as early as possible.
755
	 */
756
	acpi_boot_ec_enable();
757
752
	printk(KERN_INFO PREFIX "Interpreter enabled\n");
758
	printk(KERN_INFO PREFIX "Interpreter enabled\n");
753
759
754
	/* Initialize sleep structures */
760
	/* Initialize sleep structures */

Return to bug 11374