diff options
author | Wai-Hong Tam <waihong@google.com> | 2020-08-05 09:12:01 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-05 19:55:23 +0000 |
commit | ac65404faa5e8d146e30606aafd18b1db379061a (patch) | |
tree | 7d0f5162837bee7e1f78d5e0aa101d5b4021b33a /common/acpi.c | |
parent | dede4e01ae4c877bb05d671087a6e85a29a0f902 (diff) | |
download | chrome-ec-ac65404faa5e8d146e30606aafd18b1db379061a.tar.gz |
acpi: Align kblight ACPI behave the same as the host command
The previous refactoring CL:2290831 aligns the kblight host command to
act the same as the general PWM driver. But the kblight ACPI remains
unchanged, that results a bug that the kblight is initially off and no
way to enable it.
Should align the kblight ACPI too.
BRANCH=None
BUG=b:162892223
TEST=Build the berknip board.
Change-Id: I439dac642dc34335e2f5d277467789c94c1f8fef
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2338988
Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'common/acpi.c')
-rw-r--r-- | common/acpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/acpi.c b/common/acpi.c index 3413a44e81..92117f09b1 100644 --- a/common/acpi.c +++ b/common/acpi.c @@ -312,6 +312,7 @@ int acpi_ap_to_ec(int is_cmd, uint8_t value, uint8_t *resultptr) CPRINTF("\r[%pT ACPI kblight %d]", PRINTF_TIMESTAMP_NOW, data); kblight_set(data); + kblight_enable(data > 0); break; #endif #ifdef CONFIG_FANS |