diff options
| author | 2026-01-19 13:18:21 +0000 | |
|---|---|---|
| committer | 2026-01-23 17:18:01 +0100 | |
| commit | fb2abc754672f769ca0bc36bdeb3c2f81927f446 (patch) | |
| tree | 666df420712f89bade51e112dda0958f3c6afb01 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | usb: typec: Expose alternate mode priority via sysfs (diff) | |
usb: typec: Implement mode selection
The mode selection process is controlled by the following API functions,
which allow to initiate and complete mode entry based on the priority of
each mode:
`typec_mode_selection_start` function compiles a priority list of supported
Alternate Modes.
`typec_altmode_state_update` function is invoked by the port driver to
communicate the current mode of the Type-C connector.
`typec_mode_selection_delete` function stops the currently running mode
selection process and releases all associated system resources.
`mode_selection_work_fn` task attempts to activate modes. The process stops
on success; otherwise, it proceeds to the next mode after a timeout or
error.
Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260119131824.2529334-5-akuchynski@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
