All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/9] Type-C switch driver and Type-C framework updates
@ 2022-07-11  7:22 Prashant Malani
  2022-07-11  7:22 ` [PATCH v4 1/9] usb: typec: Add support for retimers Prashant Malani
                   ` (12 more replies)
  0 siblings, 13 replies; 18+ messages in thread
From: Prashant Malani @ 2022-07-11  7:22 UTC (permalink / raw)
  To: linux-kernel, linux-usb, chrome-platform
  Cc: bleung, heikki.krogerus, Prashant Malani, Daisuke Nojiri,
	Dustin L. Howett, Greg Kroah-Hartman, Guenter Roeck,
	Gustavo A. R. Silva, Kees Cook, Sebastian Reichel

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.

Patch 1 and 2 introduce the retimer class and associated functions to
the Type-C common code.

Patches 3-7 add the cros-typec-switch driver.

Patches 8-9 update cros-ec-typec to get and use retimer switch handles.

Submission suggestion (as always, open to better suggestions):
- Patch 1 and 2 can go through the USB repo.
- Patch 3-9 can go through the chrome-platform repo. Since they depend
  on patches 1 and 2, we can create an "topic branch" off of usb-next
  once Patch 1 and 2 are submitted, and then apply Patches 3-9 on top
  of that "topic branch" before merging it back into chrome-platform's
  for-next branch

v3: https://lore.kernel.org/linux-usb/20220707222045.1415417-1-pmalani@chromium.org/

Changes since v3:
- Updated Commit message of Patch 1 to mention that no new
  class-specific sysfs files are being created.

Changes since v2:
- Fixed missing "static" declarations, and removed newlines from
  function signatures.

Changes since v1:
- Changed class name and retimer device type name, and fixed
  retimer reference release issue.

Prashant Malani (9):
  usb: typec: Add support for retimers
  usb: typec: Add retimer handle to port
  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 ++++++++++++++++++
 drivers/usb/typec/Makefile                    |   2 +-
 drivers/usb/typec/class.c                     |  18 +-
 drivers/usb/typec/class.h                     |   2 +
 drivers/usb/typec/retimer.c                   | 168 +++++++++
 drivers/usb/typec/retimer.h                   |  15 +
 .../linux/platform_data/cros_ec_commands.h    |  18 +
 include/linux/usb/typec_retimer.h             |  45 +++
 12 files changed, 654 insertions(+), 9 deletions(-)
 create mode 100644 drivers/platform/chrome/cros_typec_switch.c
 create mode 100644 drivers/usb/typec/retimer.c
 create mode 100644 drivers/usb/typec/retimer.h
 create mode 100644 include/linux/usb/typec_retimer.h

-- 
2.37.0.144.g8ac04bfd2-goog


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-08-15  3:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11  7:22 [PATCH v4 0/9] Type-C switch driver and Type-C framework updates Prashant Malani
2022-07-11  7:22 ` [PATCH v4 1/9] usb: typec: Add support for retimers Prashant Malani
2022-07-12  8:26   ` Heikki Krogerus
2022-07-11  7:22 ` [PATCH v4 2/9] usb: typec: Add retimer handle to port Prashant Malani
2022-07-12  8:28   ` Heikki Krogerus
2022-07-11  7:22 ` [PATCH v4 3/9] platform/chrome: Add Type-C mux set command definitions Prashant Malani
2022-07-11  7:22 ` [PATCH v4 4/9] platform/chrome: cros_typec_switch: Add switch driver Prashant Malani
2022-07-11  7:22 ` [PATCH v4 5/9] platform/chrome: cros_typec_switch: Set EC retimer Prashant Malani
2022-07-11  7:23 ` [PATCH v4 6/9] platform/chrome: cros_typec_switch: Add event check Prashant Malani
2022-07-11  7:23 ` [PATCH v4 7/9] platform/chrome: cros_typec_switch: Register mode switches Prashant Malani
2022-07-11  7:23 ` [PATCH v4 8/9] platform/chrome: cros_ec_typec: Cleanup switch handle return paths Prashant Malani
2022-07-11  7:23 ` [PATCH v4 9/9] platform/chrome: cros_ec_typec: Get retimer handle Prashant Malani
2022-07-14 14:13 ` [PATCH v4 0/9] Type-C switch driver and Type-C framework updates Greg Kroah-Hartman
2022-07-14 17:02   ` Prashant Malani
2022-07-14 17:29     ` Greg Kroah-Hartman
2022-07-14 14:14 ` Greg Kroah-Hartman
2022-08-15  3:44 ` patchwork-bot+chrome-platform
2022-08-15  3:55 ` patchwork-bot+chrome-platform

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.