]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: ucsi: Enforce mode selection for cros_ec_ucsi
authorAndrei Kuchynski <akuchynski@chromium.org>
Mon, 19 Jan 2026 13:18:24 +0000 (13:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 16:18:01 +0000 (17:18 +0100)
commitffbe78fdbbbdf774a92b47ac138bc1a0a7482096
treec24861eabae7b1ebee8985760e4fee4c544daf3e
parentab2588c040fe6e87e5b1ca5a0d005cc4df14aced
usb: typec: ucsi: Enforce mode selection for cros_ec_ucsi

The mode selection sequence is initiated by the driver after all partner
alternate modes have been successfully registered.
When a partner is disconnected, the driver also stops the mode selection
process and releases resources via `typec_mode_selection_delete`.

Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260119131824.2529334-8-akuchynski@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/cros_ec_ucsi.c