Skip to content

Commit ae56c9f

Browse files
Lv Zhengrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 4625d75 commit ae56c9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/acpi/ec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,8 @@ ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)
13631363
ec_parse_io_ports, ec);
13641364
if (ACPI_FAILURE(status))
13651365
return status;
1366+
if (ec->data_addr == 0 || ec->command_addr == 0)
1367+
return AE_OK;
13661368

13671369
/* Get GPE bit assignment (EC events). */
13681370
/* TODO: Add support for _GPE returning a package */

0 commit comments

Comments
 (0)