]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: typec: tipd: mark as orientation aware
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 7 Nov 2025 15:13:10 +0000 (16:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 14:10:58 +0000 (15:10 +0100)
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>
drivers/usb/typec/tipd/core.c

index d0c86347251c5cc19a9b377550c00c27966f8329..e2b26af2b84a8db2a146113de12c17298df2e29b 100644 (file)
@@ -1701,6 +1701,7 @@ tps25750_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode)
        typec_cap.data = ret;
        typec_cap.revision = USB_TYPEC_REV_1_3;
        typec_cap.pd_revision = 0x300;
+       typec_cap.orientation_aware = true;
        typec_cap.driver_data = tps;
        typec_cap.ops = &tps6598x_ops;
        typec_cap.fwnode = fwnode;