]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: Set the bus also for the port and plug altmodes
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 8 Dec 2025 01:54:50 +0000 (09:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 13:42:32 +0000 (14:42 +0100)
commit67ab45426215c7fdccb65aecd4cac15bbe4dfcbb
tree8bbad27e475f9f241cb65cdb44bf10834e9cdc2b
parent36723c6c1ea2d4736540eaa0cb4e59dba40d8573
usb: typec: Set the bus also for the port and plug altmodes

The port and plug altmodes can't be bound to the altmode
drivers because the altmode drivers are meant for partner
communication using the VDM (vendor defined messages), but
they can still be part of the bus. The bus will make sure
that the normal bus notifications are available also with
the port altmodes.

The previously used common device type for all alternate
modes is replaced with separate dedicated device types for
port, plug, and partner alternate modes.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Link: https://patch.msgid.link/20251208015500.94-2-kernel@airkyi.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/bus.c
drivers/usb/typec/bus.h
drivers/usb/typec/class.c