diff options
author | Tzung-Bi Shih <[email protected]> | 2022-06-09 08:49:51 +0000 |
---|---|---|
committer | Tzung-Bi Shih <[email protected]> | 2022-06-10 02:31:43 +0000 |
commit | a8f77c63baece8c47599bc418d3c2c138ca7efaf (patch) | |
tree | d789ebe805b8715cd36c5f27b0a9deef90597a4e /scripts/gdb/linux/proc.py | |
parent | f91183aa459a9a06eae6843cde2fbe2d97db4f96 (diff) |
platform/chrome: cros_ec_proto: add Kunit test for getting cmd mask error
cros_ec_query_all() uses cros_ec_get_host_command_version_mask() to
query the supported MKBP version; cros_ec_get_host_command_version_mask()
uses send_command() for transferring the host command.
Returning >=0 from send_command() only denotes the transfer was success.
cros_ec_get_host_command_version_mask() should check if EC wasn't happy
by checking `msg->result`.
Add a Kunit test for returning error in `msg->result` in
cros_ec_get_host_command_version_mask(). For the case,
cros_ec_query_all() should find the EC device doesn't support MKBP.
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions