]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Mar 2020 23:15:24 +0000 (00:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Mar 2020 10:04:17 +0000 (11:04 +0100)
commit65a691f5f8f0bb63d6a82eec7b0ffd193d8d8a5f
treea6281ebdd2726c74f1c6eaca4ae3a34a35997675
parent98ada3c59d05e6c41f35fe1f7e5a550c1536be45
ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()

The reason for clearing boot_ec_is_ecdt in acpi_ec_add() (if a
PNP0C09 device object matching the ECDT boot EC had been found in
the namespace) was to cause acpi_ec_ecdt_start() to return early,
but since the latter does not look at boot_ec_is_ecdt any more,
acpi_ec_add() need not clear it.

Moreover, doing that may be confusing as it may cause "DSDT" to be
printed instead of "ECDT" in the EC initialization completion
message, so stop doing it.

While at it, split the EC initialization completion message into
two messages, one regarding the boot EC and another one printed
regardless of whether or not the EC at hand is the boot one.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c