[x86] ACPI: Enable ACPI_EC_DEBUGFS as module (Closes: #980555)
Enable building the ec_sys module, which provides access to the ACPI EC registers.
The discussion at https://bugzilla.redhat.com/show_bug.cgi?id=1943318 provides some justification for the usefulness of read-only access for debugging firmware issues.
Debian bug report #980555 describes the need for write access on some systems. Writing to arbitrary EC registers is somewhat dangerous, but:
- ec_sys provides read-only access by default. There is a module parameter to enable writing, and it is appropriately described as "Dangerous, reboot and removal of battery may be needed".
- Write access is always disabled under Lockdown.