Skip to content

Commit 934763c

Browse files
jacmetjannau
authored andcommitted
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>
1 parent e66d189 commit 934763c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/usb/typec/tipd/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,7 @@ tps25750_register_port(struct tps6598x *tps, struct fwnode_handle *fwnode)
17011701
typec_cap.data = ret;
17021702
typec_cap.revision = USB_TYPEC_REV_1_3;
17031703
typec_cap.pd_revision = 0x300;
1704+
typec_cap.orientation_aware = true;
17041705
typec_cap.driver_data = tps;
17051706
typec_cap.ops = &tps6598x_ops;
17061707
typec_cap.fwnode = fwnode;

0 commit comments

Comments
 (0)