linux/drivers/platform/chrome
Thomas Weißschuh 69a13742b7 platform/chrome: cros_ec_proto: Introduce cros_ec_get_cmd_versions()
Retrieving the supported versions of a command is a fairly common
operation. Provide a helper for it.

If the command is not supported at all the EC returns
-EINVAL/EC_RES_INVALID_PARAMS.

This error is translated into an empty version mask as that is easier to
handle for callers and they don't need to know about the error details.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20240630-cros_ec-charge-control-v5-3-8f649d018c52@weissschuh.net
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
2024-07-01 21:22:19 +08:00
..
wilco_ec platform/chrome: cros_ec_lpc: MEC access can return error code 2024-06-06 03:09:16 +00:00
Kconfig platform/chrome: add HAS_IOPORT dependencies 2024-04-24 16:45:59 +08:00
Makefile platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00
chromeos_acpi.c platform/chrome: chromeos_acpi: print hex string for ACPI_TYPE_BUFFER 2023-08-10 11:10:56 +08:00
chromeos_laptop.c platform/chrome: fix double-free in chromeos_laptop_prepare() 2022-08-22 06:56:45 +00:00
chromeos_privacy_screen.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
chromeos_pstore.c chrome platform changes for 5.8 2020-06-04 10:54:45 -07:00
chromeos_tbmc.c platform/chrome: chromeos_tbmc: Report wake events 2019-09-12 16:01:35 +02:00
cros_ec.c platform/chrome: cros_ec: let cros_ec_suspend() call cros_ec_suspend_* 2024-05-27 02:42:28 +00:00
cros_ec.h platform/chrome: cros_ec_lpc: Separate host command and irq disable 2023-10-28 11:13:25 +08:00
cros_ec_chardev.c platform/chrome: cros_ec_chardev: provide ID table for avoiding fallback match 2024-04-24 16:45:57 +08:00
cros_ec_debugfs.c platform/chrome: cros_ec_debugfs: fix wrong EC message version 2024-06-12 02:28:39 +00:00
cros_ec_i2c.c platform/chrome: Switch i2c drivers back to use .probe() 2023-05-29 08:37:29 +08:00
cros_ec_ishtp.c platform/chrome: cros_ec_ishtp: use helper functions for connection 2023-12-06 11:33:46 +01:00
cros_ec_lightbar.c platform/chrome: cros_ec_lightbar: provide ID table for avoiding fallback match 2024-04-24 16:45:57 +08:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc: Fix error code in cros_ec_lpc_mec_read_bytes() 2024-06-13 15:12:12 +00:00
cros_ec_lpc_mec.c platform/chrome: cros_ec_lpc: Handle zero length read/write 2024-06-14 02:47:25 +00:00
cros_ec_lpc_mec.h platform/chrome: cros_ec_lpc: MEC access can use an AML mutex 2024-06-06 03:11:51 +00:00
cros_ec_proto.c platform/chrome: cros_ec_proto: Introduce cros_ec_get_cmd_versions() 2024-07-01 21:22:19 +08:00
cros_ec_proto_test.c platform/chrome: cros_ec_proto: update Kunit test for get_next_data_v3 2024-06-12 02:27:00 +00:00
cros_ec_proto_test_util.c platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00
cros_ec_proto_test_util.h platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00
cros_ec_rpmsg.c platform/chrome: correct cros_ec_prepare_tx() usage 2022-05-16 10:01:51 +08:00
cros_ec_sensorhub.c platform/chrome: cros_ec_sensorhub: provide ID table for avoiding fallback match 2024-04-24 16:45:56 +08:00
cros_ec_sensorhub_ring.c platform/chrome: sensorhub: Implement quickselect for median calculation 2023-11-13 12:46:42 +08:00
cros_ec_sensorhub_trace.h platform: chrome: Split trace include file 2022-03-31 16:56:29 -07:00
cros_ec_spi.c platform/chrome: cros_ec_spi: Follow renaming of SPI "master" to "controller" 2024-02-08 11:54:47 +00:00
cros_ec_sysfs.c platform/chrome: cros_ec_sysfs: provide ID table for avoiding fallback match 2024-04-24 16:45:57 +08:00
cros_ec_trace.c platform/chrome: cros_ec: Add command for regulator control. 2020-06-15 22:40:14 +01:00
cros_ec_trace.h platform/chrome: use macros for passthru indexes 2022-06-10 02:31:42 +00:00
cros_ec_typec.c platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD 2024-02-17 17:02:42 +01:00
cros_ec_typec.h platform/chrome: cros_ec_typec: Move structs to header 2023-01-09 20:32:53 +00:00
cros_ec_uart.c chrome-platform fixes for v6.9-rc4 2024-04-11 11:15:09 -07:00
cros_ec_vbc.c platform/chrome: cros_ec_vbc: provide ID table for avoiding fallback match 2024-04-24 16:45:58 +08:00
cros_hps_i2c.c platform/chrome: cros_hps_i2c: Replace deprecated UNIVERSAL_DEV_PM_OPS() 2024-04-24 16:45:59 +08:00
cros_kbd_led_backlight.c platform/chrome: cros_kbd_led_backlight: provide ID table for avoiding fallback match 2024-04-24 16:45:58 +08:00
cros_typec_switch.c platform/chrome: cros_typec_switch: Convert to platform remove callback returning void 2023-09-28 13:18:06 +08:00
cros_typec_vdm.c platform/chrome: cros_typec_vdm: Mark port_amode_ops const 2023-10-04 11:40:54 +08:00
cros_typec_vdm.h platform/chrome: cros_typec_vdm: Mark port_amode_ops const 2023-10-04 11:40:54 +08:00
cros_usbpd_logger.c platform/chrome: cros_usbpd_logger: provide ID table for avoiding fallback match 2024-04-24 16:45:56 +08:00
cros_usbpd_notify.c platform/chrome: cros_usbpd_notify: provide ID table for avoiding fallback match 2024-04-24 16:45:57 +08:00