diff options
| author | Brady Norander <bradynorander@gmail.com> | 2025-10-30 15:59:11 -0400 |
|---|---|---|
| committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2025-10-31 01:41:51 +0000 |
| commit | c862381bd03ad4d999e0f1b3f8d1119ed7aa2e96 (patch) | |
| tree | 56c2e087c8ff8050fe7c94df01780586d5d9b9a2 /tools/lib/python/kdoc/kdoc_re.py | |
| parent | e4ee0bb077cd7d70207647a0106f6ea6a74c2636 (diff) | |
platform/chrome: cros_ec_lightbar: Check if ec supports suspend commands
The Chromebook Pixel 2013 (Link)'s ec does not support the lightbar manual
suspend commands. As a result, attempting to suspend the device fails and
prints the following error:
cros-ec-lightbar cros-ec-lightbar.3.auto: PM: dpm_run_callback(): platform_pm_suspend returns -22
cros-ec-lightbar cros-ec-lightbar.3.auto: PM: failed to suspend: error -22
PM: Some devices failed to suspend, or early wake event detected
Check the return value of lb_manual_suspend_ctrl in cros_ec_lightbar_probe
and disable manual suspend control if -EINVAL is returned.
Signed-off-by: Brady Norander <bradynorander@gmail.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20251030195910.8625-2-bradynorander@gmail.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
