]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: ucsi: Delay alternate mode discovery
authorJameson Thies <jthies@google.com>
Fri, 10 May 2024 20:12:43 +0000 (20:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 13:44:27 +0000 (15:44 +0200)
commit4ea9d86d0a6fab9f8fabf9a62894da4d2e590f05
tree8e711a99d5dce64a9012504273c225b477152322
parentfe8db0bbe04d31ab17dc60e205c4a3365c92e67c
usb: typec: ucsi: Delay alternate mode discovery

Delay the ucsi_check_altmodes task to be inline with surrounding partner
tasks. This allows partner, cable and identity discovery to complete
before alternate mode registration. With that order, alternate mode
discovery can be used to indicate the ucsi driver has completed
discovery.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Jameson Thies <jthies@google.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240510201244.2968152-4-jthies@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c