Linus, Please pull chrome-platform updates for v5.20. Thanks, TzungBi The following changes since commit f2906aa863381afb0015a9eb7fefad885d4e5a56: Linux 5.19-rc1 (2022-06-05 17:18:54 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git/ tags/tag-chrome-platform-for-v5.20 for you to fetch changes up to afef1e1a0223623d063a6df51dbc342c9517b948: platform/chrome: cros_kunit_util: add default value for `msg->result` (2022-07-21 08:49:28 +0000) ---------------------------------------------------------------- chrome platform changes for 5.20 cros_ec_proto: * Leverage Kunit and add Kunit test cases. * Clean-ups. * Fix typo. cros_ec_commands: * Fix typo. * Fix compile errors. cros_kbd_led_backlight: * Support OF match. * Support EC PWM backend. cros_ec: * Always expose the last resume result to fix sleep hang detection on ARM-based chromebooks. wilco_ec: * Fix typo. cros_ec_typec: * Clean-ups. * Use Type-C framework utilities to manage altmode structs. ---------------------------------------------------------------- Colin Ian King (1): platform/chrome: cros_ec_proto: Fix spelling mistake "unknwon" -> "unknown" Jiang Jian (1): platform/chrome: wilco_ec: event: Fix typo in comment Nícolas F. R. A. Prado (1): platform/chrome: cros_ec_typec: Use dev_err_probe on port register fail Prashant Malani (5): regulator: cros-ec: Use common cros_ec_command() platform/chrome: cros_ec_proto: Rename cros_ec_command function platform/chrome: cros_ec_proto: Update size arg types platform/chrome: cros_ec_typec: Rename port altmode array platform/chrome: cros_ec_typec: Register port altmodes Stephen Boyd (1): platform/chrome: cros_ec: Always expose last resume result Tzung-Bi Shih (49): platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_prepare_tx() platform/chrome: cros_ec_proto: factor legacy out from cros_ec_prepare_tx() platform/chrome: cros_ec_proto: update cros_ec_check_result() comment platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_check_result() platform/chrome: cros_kbd_led_backlight: sort headers alphabetically platform/chrome: cros_kbd_led_backlight: separate ACPI backend dt-bindings: add google,cros-kbd-led-backlight platform/chrome: cros_kbd_led_backlight: support OF match platform/chrome: cros_kbd_led_backlight: support EC PWM backend platform/chrome: cros_ec_commands: fix compile errors platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_query_all() platform/chrome: use macros for passthru indexes platform/chrome: cros_ec_proto: assign buffer size from protocol info platform/chrome: cros_ec_proto: remove redundant NULL check platform/chrome: cros_ec_proto: use cros_ec_map_error() platform/chrome: cros_ec_proto: separate cros_ec_get_proto_info() platform/chrome: cros_ec_proto: add Kunit tests for getting proto info platform/chrome: cros_ec_proto: handle empty payload in getting proto info platform/chrome: cros_ec_proto: separate cros_ec_get_proto_info_legacy() platform/chrome: cros_ec_proto: add Kunit test for getting legacy info platform/chrome: cros_ec_proto: handle empty payload in getting info legacy platform/chrome: cros_ec_proto: don't show MKBP version if unsupported platform/chrome: cros_ec_proto: return 0 on getting cmd mask success platform/chrome: cros_ec_proto: add Kunit test for getting cmd mask error platform/chrome: cros_ec_proto: check `msg->result` in getting cmd mask platform/chrome: cros_ec_proto: add Kunit tests for getting cmd mask platform/chrome: cros_ec_proto: handle empty payload in getting cmd mask platform/chrome: cros_ec_proto: return 0 on getting wake mask success platform/chrome: cros_ec_proto: add Kunit test for getting wake mask platform/chrome: cros_ec_proto: handle empty payload in getting wake mask platform/chrome: cros_ec_proto: add "cros_ec_" prefix to send_command() platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_cmd_xfer() platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_send_command() platform/chrome: cros_ec_proto: separate cros_ec_xfer_command() platform/chrome: cros_ec_proto: separate cros_ec_wait_until_complete() platform/chrome: cros_ec_proto: change Kunit expectation when timed out platform/chrome: cros_ec_proto: return -EAGAIN when retries timed out platform/chrome: cros_ec_proto: add Kunit test for empty payload platform/chrome: cros_ec_proto: return -EPROTO if empty payload platform/chrome: cros_ec_proto: add Kunit tests for cmd_xfer_status platform/chrome: cros_ec_proto: add Kunit test for cros_ec_map_error() platform/chrome: cros_ec_proto: add Kunit tests for get_next_event platform/chrome: cros_ec_proto: add Kunit tests for get_host_event platform/chrome: cros_ec_proto: add Kunit tests for check_features platform/chrome: cros_ec_proto: add Kunit tests for get_sensor_count platform/chrome: cros_ec_proto: add Kunit test for cros_ec_cmd() platform/chrome: cros_kbd_led_backlight: fix build warning platform/chrome: merge Kunit utils and test cases platform/chrome: cros_kunit_util: add default value for `msg->result` Xiang wangx (1): platform/chrome: cros_ec_commands: Fix syntax errors in comments .../chrome/google,cros-kbd-led-backlight.yaml | 35 + .../devicetree/bindings/mfd/google,cros-ec.yaml | 3 + drivers/mfd/cros_ec_dev.c | 4 +- drivers/platform/chrome/Kconfig | 11 +- drivers/platform/chrome/Makefile | 5 + drivers/platform/chrome/cros_ec.c | 11 +- drivers/platform/chrome/cros_ec_proto.c | 473 ++-- drivers/platform/chrome/cros_ec_proto_test.c | 2753 ++++++++++++++++++++ drivers/platform/chrome/cros_ec_trace.h | 8 +- drivers/platform/chrome/cros_ec_typec.c | 93 +- drivers/platform/chrome/cros_kbd_led_backlight.c | 196 +- drivers/platform/chrome/cros_kunit_util.c | 130 + drivers/platform/chrome/cros_kunit_util.h | 48 + drivers/platform/chrome/cros_usbpd_notify.c | 4 +- drivers/platform/chrome/wilco_ec/event.c | 2 +- drivers/regulator/cros-ec-regulator.c | 36 +- include/linux/platform_data/cros_ec_commands.h | 6 +- include/linux/platform_data/cros_ec_proto.h | 7 +- 18 files changed, 3490 insertions(+), 335 deletions(-) create mode 100644 Documentation/devicetree/bindings/chrome/google,cros-kbd-led-backlight.yaml create mode 100644 drivers/platform/chrome/cros_ec_proto_test.c create mode 100644 drivers/platform/chrome/cros_kunit_util.c create mode 100644 drivers/platform/chrome/cros_kunit_util.h