Skip to contentSkip to conversation

usb: typec: tipd: mark as orientation aware

PATCH In review Peter Korsgaard 2 participants 2 messages Nov 7, 2025 – Nov 10, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/usb/typec/tipd/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/typec/tipd/core.c +1 -0
index 2b1049c9a6f3..d561032a2970 100644
@@ -1695,6 +1695,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;
Signature · 1 line
2.39.5
maintainer Reviewed-by on v1 1/1
#1 lore raw

Fri, Nov 07, 2025 at 04:13:10PM +0100, Peter Korsgaard kirjoitti:

Quoted 5 lines

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.

Quoted 18 lines
---
 drivers/usb/typec/tipd/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/typec/tipd/core.c +1 -0
index 2b1049c9a6f3..d561032a2970 100644
@@ -1695,6 +1695,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;
Signature · 1 line
2.39.5
Signature · 1 line
heikki