[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250821203838.1721581-4-rdbabiera@google.com>
Date: Thu, 21 Aug 2025 20:38:33 +0000
From: RD Babiera <rdbabiera@...gle.com>
Cc: heikki.krogerus@...ux.intel.com, gregkh@...uxfoundation.org,
badhri@...gle.com, linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
RD Babiera <rdbabiera@...gle.com>
Subject: [PATCH v1 0/2] usb: typec: altmodes/displayport: add port data role
handling support
This patchset adds support for Type-C PD altmodes drivers to query the port
data role using typec_altmode_get_data_role which requires a new symbol
typec_get_data_role. The UFP is not allowed to send the Enter Mode command,
so Alt Mode drivers can use this check to prevent driver registration
during the probe sequence.
The DisplayPort Alt Mode driver queries for the port data role during the
probe sequence and exits if the port is the UFP. If a data role swap were
initiated, the driver would be unregistered anyways so it is not necessary
to keep it alive.
RD Babiera (2):
usb: typec: class: add typec_get_data_role symbol
usb: typec: altmodes/displayport: do not enter mode if port is the UFP
drivers/usb/typec/altmodes/displayport.c | 4 +++-
drivers/usb/typec/class.c | 13 +++++++++++++
include/linux/usb/typec.h | 1 +
include/linux/usb/typec_altmode.h | 12 ++++++++++++
4 files changed, 29 insertions(+), 1 deletion(-)
base-commit: 956606bafb5fc6e5968aadcda86fc0037e1d7548
--
2.51.0.261.g7ce5a0a67e-goog
Powered by blists - more mailing lists