diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2024-10-16 16:18:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-17 08:41:45 +0200 |
commit | 8060bcb109f2d9b85451e84a7a08042da40368df (patch) | |
tree | 45be932c746f018eea7c5b6715cc04e506959db1 /drivers/usb/typec/class.h | |
parent | 0990e5c642b7767918a8bda8faeedbed988119e0 (diff) |
usb: typec: Add attribute file showing the supported USB modes of the port
This attribute file, named "usb_capability", will show the
supported USB modes, which are USB 2.0, USB 3.2 and USB4.
These modes are defined in the USB Type-C (R2.0) and USB
Power Delivery (R3.0 V2.0) Specifications.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20241016131834.898599-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec/class.h')
-rw-r--r-- | drivers/usb/typec/class.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/typec/class.h b/drivers/usb/typec/class.h index 7485cdb9dd20..85bc50aa54f7 100644 --- a/drivers/usb/typec/class.h +++ b/drivers/usb/typec/class.h @@ -55,6 +55,7 @@ struct typec_port { enum typec_role vconn_role; enum typec_pwr_opmode pwr_opmode; enum typec_port_type port_type; + enum usb_mode usb_mode; struct mutex port_type_lock; enum typec_orientation orientation; |