Skip to contentSkip to conversation

platform/chrome: typec: Add port partner registration

PATCH Superseded Prashant Malani 1 participant 1 message Apr 10, 2020

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover platform/chrome: typec: Add port partner registration

The following series adds port-partner registration when connects/disconnects are detected. In order to do that, we also register a listener for the cros-usbpd-notifier, which will inform the driver of EC PD events. While we are here, separate out the Type C port data objects into a separate struct.

v1: https://lkml.org/lkml/2020/4/6/1155

Changes in v2:
- Added Kconfig dependency.
- Fixed style comments.
- Removed unnecessary devm_kfree() call.
- Fixed incorrect error pointer return.

Prashant Malani (3):
platform/chrome: typec: Use notifier for updates platform/chrome: typec: Add struct for port data platform/chrome: typec: Register port partner

 drivers/platform/chrome/Kconfig         |   1 +
 drivers/platform/chrome/cros_ec_typec.c | 119 ++++++++++++++++++++----
 2 files changed, 103 insertions(+), 17 deletions(-)
Signature · 1 line
2.26.0.110.g2183baf09c-goog