Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: typec: ucsi: Set orientation_aware if UCSI version is 2.x and above

For UCSI 2.0 and above, since the orientation is part of the paylad,
set the orientation_aware by default and let the implementation specific
update_connector op override if necessary.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20251028-b4-ucsi-set-orientation-aware-on-version-2-and-above-v1-1-d3425f5679af@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Abel Vesa and committed by
Greg Kroah-Hartman
86a35865 a2fa8a12

+3
+3
drivers/usb/typec/ucsi/ucsi.c
··· 1660 1660 cap->driver_data = con; 1661 1661 cap->ops = &ucsi_ops; 1662 1662 1663 + if (ucsi->version >= UCSI_VERSION_2_0) 1664 + con->typec_cap.orientation_aware = true; 1665 + 1663 1666 if (ucsi->ops->update_connector) 1664 1667 ucsi->ops->update_connector(con); 1665 1668