ACPI / EC: Enhance boot EC sanity check
authorLv Zheng <lv.zheng@intel.com>
Thu, 15 Jun 2017 01:41:35 +0000 (09:41 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Jun 2017 22:00:01 +0000 (00:00 +0200)
commitae56c9fd1518f9ac8def938638aebd2d7d289325
tree48e1665fbc51a5320943b1de21f1db737bf1e55f
parent4625d752e600c116e6327f9d7fc16e8f5be107e9
ACPI / EC: Enhance boot EC sanity check

It's reported that some buggy BIOS tables can contain 2 DSDT ECs, one of
them is invalid but acpi_ec_dsdt_probe() fails to pick the valid one.
This patch simply enhances sanity checks in ec_parse_device() as a
workaround to skip probing wrong namespace ECs.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=195651
Tested-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c