diff options
author | Lv Zheng <lv.zheng@intel.com> | 2016-09-07 16:50:27 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-09-10 02:33:50 +0200 |
commit | 97cb159fd91d00f8d7d1adeb075503dc0d946bff (patch) | |
tree | 75952cf8e88ada30839ccca69337b14ef8346b6d /drivers/i2c | |
parent | 2a5708409e4e05446eb1a89ecb48641d6fd5d5a9 (diff) | |
download | linux-97cb159fd91d00f8d7d1adeb075503dc0d946bff.tar.bz2 |
ACPI / EC: Fix issues related to boot_ec
There are issues related to the boot_ec:
1. If acpi_ec_remove() is invoked, boot_ec will also be freed, this is not
expected as the boot_ec could be enumerated via ECDT.
2. Address space handler installation/unstallation lead to unexpected _REG
evaluations.
This patch adds acpi_is_boot_ec() check to be used to fix the above issues.
However, since acpi_ec_remove() actually won't be invoked, this patch
doesn't handle the reference counting of "struct acpi_ec", it only ensures
the correctness of the boot_ec destruction during the boot.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=153511
Reported-and-tested-by: Jonh Henderson <jw.hendy@gmail.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions