aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorTzung-Bi Shih <[email protected]>2022-06-09 08:49:51 +0000
committerTzung-Bi Shih <[email protected]>2022-06-10 02:31:43 +0000
commita8f77c63baece8c47599bc418d3c2c138ca7efaf (patch)
treed789ebe805b8715cd36c5f27b0a9deef90597a4e /scripts/gdb/linux/proc.py
parentf91183aa459a9a06eae6843cde2fbe2d97db4f96 (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