]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_proto: change Kunit expectation when timed out
authorTzung-Bi Shih <tzungbi@kernel.org>
Mon, 18 Jul 2022 05:09:11 +0000 (05:09 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 20 Jul 2022 01:22:58 +0000 (01:22 +0000)
commit688ac273cab7f523aecb5146b30efd889ec02e2a
tree834b46bf5a2a9bf96d75f1aac4fb41c3675da987
parentd6e7fa558ae9a8cca8486900ede515f9997262b8
platform/chrome: cros_ec_proto: change Kunit expectation when timed out

While EC_COMMS_STATUS_PROCESSING flag is still on after it tries
EC_COMMAND_RETRIES times for sending EC_CMD_GET_COMMS_STATUS,
cros_ec_wait_until_complete() doesn't return an error code.

Change the expectation to an error code.

Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220718050914.2267370-8-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_proto_test.c