[PATCH RFC 18/22] usb: typec: mux: Introduce data_role to mux state
Sven Peter
sven at kernel.org
Thu Aug 21 08:39:10 PDT 2025
From: Hector Martin <marcan at marcan.st>
Some muxes may need to know the data role that is being switched to,
such as to direct the data pins to separate host/device controllers or
configure a unified PHY correctly.
Signed-off-by: Hector Martin <marcan at marcan.st>
Signed-off-by: Sven Peter <sven at kernel.org>
---
include/linux/usb/typec_mux.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/usb/typec_mux.h b/include/linux/usb/typec_mux.h
index 2489a7857d8e10a73450a66ee85b5068f401f047..89b64ed081aecaa70529aaa717579c0dc7a5f961 100644
--- a/include/linux/usb/typec_mux.h
+++ b/include/linux/usb/typec_mux.h
@@ -45,6 +45,7 @@ void *typec_switch_get_drvdata(struct typec_switch_dev *sw);
struct typec_mux_state {
struct typec_altmode *alt;
unsigned long mode;
+ enum typec_data_role data_role;
void *data;
};
--
2.34.1
More information about the linux-phy
mailing list