CVSROOT:        /cvs
Module name:    src
Changes by:     piro...@cvs.openbsd.org 2016/10/25 00:55:59

Modified files:
        sys/dev/acpi   : acpidev.h acpiec.c 

Log message:
Deduplicate the CRS parsing code and handle broken ACPI implementations.

This change was prompted by a report from Ilya Kaliman where acpiec(4)
failed to initialize on his Acer Aspire S7.

Further investigations showed that the machine had 4 instead of 2 resources
defined inside the EC device which is a violation of all existing ACPI
revisions.

We now handle such machines by using the aml resource parser directly, which
lead to the removal of the existing one from acpiec.c, and ignoring extra
resources (although they are reported in the dmesg).

In the process I also done a couple of more style(9) fixes.

Suggested by and ok guenther@

Reply via email to