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: tipd: mark as orientation aware

The driver contains orientation detection logic and correctly calls
typec_set_orientation(), but forgets to set the orientation_aware
capability, so the orientation value is not visible in sysfs - Fix that.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20251107151311.2089806-1-peter@korsgaard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Korsgaard and committed by
Greg Kroah-Hartman
66371878 71f91b40

+1
+1
drivers/usb/typec/tipd/core.c
··· 1701 1701 typec_cap.data = ret; 1702 1702 typec_cap.revision = USB_TYPEC_REV_1_3; 1703 1703 typec_cap.pd_revision = 0x300; 1704 + typec_cap.orientation_aware = true; 1704 1705 typec_cap.driver_data = tps; 1705 1706 typec_cap.ops = &tps6598x_ops; 1706 1707 typec_cap.fwnode = fwnode;