Skip to content

Commit 4ec1287

Browse files
Andrei Kuchynskigregkh
authored andcommitted
platform/chrome: cros_ec_typec: Set no_mode_control flag
This flag specifies that the Embedded Controller (EC) must receive explicit approval from the Application Processor (AP) before initiating Type-C alternate modes or USB4 mode. Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Tzung-Bi Shih <tzungbi@kernel.org> Reviewed-by: Benson Leung <bleung@chromium.org> Link: https://patch.msgid.link/20260119131824.2529334-3-akuchynski@chromium.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dfd7b08 commit 4ec1287

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/platform/chrome/cros_ec_typec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ static int cros_typec_init_ports(struct cros_typec_data *typec)
491491

492492
cap->driver_data = cros_port;
493493
cap->ops = &cros_typec_usb_mode_ops;
494+
cap->no_mode_control = !typec->ap_driven_altmode;
494495

495496
cros_port->port = typec_register_port(dev, cap);
496497
if (IS_ERR(cros_port->port)) {

0 commit comments

Comments
 (0)