[PATCH v2 1/4] ACPI / EC: Cleanup first_ec/boot_ec code

2016-09-07 Thread Lv Zheng
In order to support full ECDT (driving the ECDT EC after probing the namespace EC), we need to change our EC device alloc/free algorithm, ensure not to free old boot EC before qualifying new boot EC. This patch achieves this by cleaning up first_ec/boot_ec logic: 1. first_ec: used to perform

[PATCH v2 1/4] ACPI / EC: Cleanup first_ec/boot_ec code

2016-09-07 Thread Lv Zheng
In order to support full ECDT (driving the ECDT EC after probing the namespace EC), we need to change our EC device alloc/free algorithm, ensure not to free old boot EC before qualifying new boot EC. This patch achieves this by cleaning up first_ec/boot_ec logic: 1. first_ec: used to perform