mbox series

[0/2] usb: Link USB devices with their USB Type-C partner counterparts

Message ID 20231011105825.320062-1-heikki.krogerus@linux.intel.com (mailing list archive)
Headers show
Series usb: Link USB devices with their USB Type-C partner counterparts | expand

Message

Heikki Krogerus Oct. 11, 2023, 10:58 a.m. UTC
Hi,

The idea for these comes from Benson. By letting the typec drivers
know what exactly was enumerated, they can power off everything that's
not needed.

The USB device and USB Type-C partner device will also be linked
together with symlinks in sysfs. If I uderstood correctly, you guys
(from ChromiumOS team) have already user for that. Let me know if I
got that wrong.

The original RFC:
https://lore.kernel.org/linux-usb/ZPCGnL4zgAKh1mGA@kuha.fi.intel.com/T/

thanks,

Heikki Krogerus (2):
  usb: typec: Link enumerated USB devices with Type-C partner
  usb: Inform the USB Type-C class about enumerated devices

 Documentation/ABI/testing/sysfs-bus-usb |   9 ++
 drivers/usb/core/hub.c                  |   4 +
 drivers/usb/core/hub.h                  |   3 +
 drivers/usb/core/port.c                 |  19 ++++-
 drivers/usb/typec/class.c               | 108 ++++++++++++++++++++++--
 drivers/usb/typec/class.h               |  16 ++++
 drivers/usb/typec/port-mapper.c         |   9 +-
 include/linux/usb/typec.h               |  37 ++++++++
 8 files changed, 193 insertions(+), 12 deletions(-)