From: Len Brown Date: Thu, 23 Oct 2008 03:27:59 +0000 (-0400) Subject: Merge branch 'ec' into test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fbb3726f246aadd1bebc01114100b6e69afa5b9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Merge branch 'ec' into test --- 0fbb3726f246aadd1bebc01114100b6e69afa5b9 diff --cc drivers/acpi/ec.c index 4c004286b3d9,444cd9ed12c7..4178d17aa0ed --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@@ -862,22 -871,11 +871,22 @@@ static int ec_install_handlers(struct a &acpi_ec_space_handler, NULL, ec); if (ACPI_FAILURE(status)) { - acpi_remove_gpe_handler(NULL, ec->gpe, &acpi_ec_gpe_handler); - return -ENODEV; + if (status == AE_NOT_FOUND) { + /* + * Maybe OS fails in evaluating the _REG object. + * The AE_NOT_FOUND error will be ignored and OS + * continue to initialize EC. + */ + printk(KERN_ERR "Fail in evaluating the _REG object" + " of EC device. Broken bios is suspected.\n"); + } else { + acpi_remove_gpe_handler(NULL, ec->gpe, + &acpi_ec_gpe_handler); + return -ENODEV; + } } - ec->handlers_installed = 1; + set_bit(EC_FLAGS_HANDLERS_INSTALLED, &ec->flags); return 0; }