diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-07-18 08:09:10 +0300 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-07-20 04:22:58 +0300 |
commit | 0aad9aff6a6450f7ea5e980add1b33d40e5bed52 (patch) | |
tree | 139d6a5835a8dcc741fe168cd903d5de1470ddff /tools/perf/scripts/python/stackcollapse.py | |
parent | 810be30d27bdfe7923084a5550dfddeed28ac08b (diff) | |
download | linux-0aad9aff6a6450f7ea5e980add1b33d40e5bed52.tar.xz |
platform/chrome: cros_ec_proto: separate cros_ec_wait_until_complete()
EC returns EC_RES_IN_PROGRESS if the host command needs more time to
complete. Whenever receives the return code, cros_ec_send_command()
sends EC_CMD_GET_COMMS_STATUS to query the command status.
Separate cros_ec_wait_until_complete() from cros_ec_send_command().
It sends EC_CMD_GET_COMMS_STATUS and waits until the previous command
was completed, or encountered error, or timed out.
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20220718050914.2267370-7-tzungbi@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions