[PATCH v5 0/7] platform/chrome: Type-C switch driver

From: Prashant Malani
Date: Mon Aug 15 2022 - 02:37:03 EST


v4 of this series was originally merged to the USB maintainer tree, but
there were dependencies from the chrome-platform tree which caused
conflicts in the merge tree, so the chrome specific parts were
reverted [1].

v5 is a resubmission of the series with the Chrome-only parts (since the
USB framework parts were merged successfully).

[1] https://lore.kernel.org/lkml/YtadE201j+dt5jJx@xxxxxxxxx/

Original cover letter (with parts relating to USB patches removed):

This series introduces a retimer class to the USB Type-C framework,
It also introduces a Chrome EC (Embedded Controller) switch driver which
registers the aforementioned retimer switches as well as mode-switches.

v4: https://lore.kernel.org/linux-usb/20220711072333.2064341-1-pmalani@xxxxxxxxxxxx/

Changes in v5:
- Removed first 2 patches for retimer class support, since those were
merged in 5.20.
- Added missing ACPI Kconfig to Patch 2/7.
- Updated patches 3/7 and 4/7 to use new function name cros_ec_cmd().


Prashant Malani (7):
platform/chrome: Add Type-C mux set command definitions
platform/chrome: cros_typec_switch: Add switch driver
platform/chrome: cros_typec_switch: Set EC retimer
platform/chrome: cros_typec_switch: Add event check
platform/chrome: cros_typec_switch: Register mode switches
platform/chrome: cros_ec_typec: Cleanup switch handle return paths
platform/chrome: cros_ec_typec: Get retimer handle

MAINTAINERS | 1 +
drivers/platform/chrome/Kconfig | 11 +
drivers/platform/chrome/Makefile | 1 +
drivers/platform/chrome/cros_ec_typec.c | 50 ++-
drivers/platform/chrome/cros_typec_switch.c | 332 ++++++++++++++++++
.../linux/platform_data/cros_ec_commands.h | 18 +
6 files changed, 406 insertions(+), 7 deletions(-)
create mode 100644 drivers/platform/chrome/cros_typec_switch.c

--
2.37.1.595.g718a3a8f04-goog