platform/chrome: cros_ec_lpc: Move host command to prepare/complete
authorTim Van Patten <timvp@chromium.org>
Mon, 15 May 2023 20:25:52 +0000 (14:25 -0600)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 22 May 2023 01:54:36 +0000 (09:54 +0800)
commit4b9abbc132b86e2ce65090798186836f48f33382
tree32d43f960722e31f7ceb111d4ffaf809ddf432b4
parent2cbf475a04b2ae3d722bbe41742e5d874a027fc3
platform/chrome: cros_ec_lpc: Move host command to prepare/complete

Update cros_ec_lpc_pm_ops to call cros_ec_lpc_prepare() during PM
.prepare() and cros_ec_lpc_complete() during .complete(). This moves the
host command that the AP sends and allows the EC to log entry/exit of
AP's suspend/resume more accurately.

Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Signed-off-by: Tim Van Patten <timvp@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20230515142552.1.I17cae37888be3a8683911991602f18e482e7a621@changeid
drivers/platform/chrome/cros_ec_lpc.c