[ACPI] revert Embedded Controller to polling-mode by default (ala 2.6.12) Burst mode isn't ready for prime time, but can be enabled for test via "ec_burst=1"

Signed-off-by: Luming Yu <luming.yu@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by Luming Yu and committed by Len Brown 7b15f5e7 ecc21ebe

+19 -5
+19 -5
drivers/acpi/ec.c
··· 76 static int acpi_ec_start (struct acpi_device *device); 77 static int acpi_ec_stop (struct acpi_device *device, int type); 78 static int acpi_ec_burst_add ( struct acpi_device *device); 79 80 static struct acpi_driver acpi_ec_driver = { 81 .name = ACPI_EC_DRIVER_NAME, 82 .class = ACPI_EC_CLASS, 83 .ids = ACPI_EC_HID, 84 .ops = { 85 - .add = acpi_ec_burst_add, 86 .remove = acpi_ec_remove, 87 .start = acpi_ec_start, 88 .stop = acpi_ec_stop, ··· 165 166 /* External interfaces use first EC only, so remember */ 167 static struct acpi_device *first_ec; 168 - static int acpi_ec_polling_mode; 169 170 /* -------------------------------------------------------------------------- 171 Transaction Management ··· 1711 acpi_fake_ecdt_enabled = 1; 1712 return 0; 1713 } 1714 __setup("acpi_fake_ecdt", acpi_fake_ecdt_setup); 1715 static int __init acpi_ec_set_polling_mode(char *str) 1716 { 1717 - acpi_ec_polling_mode = EC_POLLING; 1718 - acpi_ec_driver.ops.add = acpi_ec_polling_add; 1719 return 0; 1720 } 1721 - __setup("ec_polling", acpi_ec_set_polling_mode);
··· 76 static int acpi_ec_start (struct acpi_device *device); 77 static int acpi_ec_stop (struct acpi_device *device, int type); 78 static int acpi_ec_burst_add ( struct acpi_device *device); 79 + static int acpi_ec_polling_add ( struct acpi_device *device); 80 81 static struct acpi_driver acpi_ec_driver = { 82 .name = ACPI_EC_DRIVER_NAME, 83 .class = ACPI_EC_CLASS, 84 .ids = ACPI_EC_HID, 85 .ops = { 86 + .add = acpi_ec_polling_add, 87 .remove = acpi_ec_remove, 88 .start = acpi_ec_start, 89 .stop = acpi_ec_stop, ··· 164 165 /* External interfaces use first EC only, so remember */ 166 static struct acpi_device *first_ec; 167 + static int acpi_ec_polling_mode = EC_POLLING; 168 169 /* -------------------------------------------------------------------------- 170 Transaction Management ··· 1710 acpi_fake_ecdt_enabled = 1; 1711 return 0; 1712 } 1713 + 1714 __setup("acpi_fake_ecdt", acpi_fake_ecdt_setup); 1715 static int __init acpi_ec_set_polling_mode(char *str) 1716 { 1717 + int burst; 1718 + 1719 + if (!get_option(&str, &burst)) 1720 + return 0; 1721 + 1722 + if (burst) { 1723 + acpi_ec_polling_mode = EC_BURST; 1724 + acpi_ec_driver.ops.add = acpi_ec_burst_add; 1725 + } else { 1726 + acpi_ec_polling_mode = EC_POLLING; 1727 + acpi_ec_driver.ops.add = acpi_ec_polling_add; 1728 + } 1729 + printk(KERN_INFO PREFIX "EC %s mode.\n", 1730 + burst ? "burst": "polling"); 1731 return 0; 1732 } 1733 + __setup("ec_burst=", acpi_ec_set_polling_mode);