Message ID | 20241004140440.1882311-1-heikki.krogerus@linux.intel.com |
---|---|
Headers | show |
Series | usb: typec: USB Modes | expand |
On Fri, Oct 04, 2024 at 05:04:36PM GMT, Heikki Krogerus wrote: > 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> > --- > Documentation/ABI/testing/sysfs-class-typec | 13 ++++ > drivers/usb/typec/class.c | 81 +++++++++++++++++++++ > drivers/usb/typec/class.h | 1 + > include/linux/usb/typec.h | 17 +++++ > 4 files changed, 112 insertions(+) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # SM8450-HDK
On Fri, Oct 04, 2024 at 05:04:38PM GMT, Heikki Krogerus wrote: > The USB capabilities can be extracted from the response to > the Get Connector Capability command. USB2 and USB3 support > can be checked from the Operation Mode field, and USB4 > support from the Extended Operation Mode field. > > Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> > --- > drivers/usb/typec/ucsi/ucsi.c | 7 +++++++ > drivers/usb/typec/ucsi/ucsi.h | 8 ++++++++ > 2 files changed, 15 insertions(+) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # SM8450-HDK