Commit aea6e535 authored by Linyu Yuan's avatar Linyu Yuan Committed by Matthias Männich
Browse files

BACKPORT: UPSTREAM: usb: typec: ucsi: Wait for the USB role switches



When role switch module probe late than ucsi module,
fwnode_usb_role_switch_get() will return -EPROBE_DEFER,
it is better to restart ucsi init work to find
it again every 100ms, total wait time is 10 second.

It also means change ucsi init work to delayed_work.

Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarLinyu Yuan <quic_linyyuan@quicinc.com>
Link: https://lore.kernel.org/r/1650881886-25530-3-git-send-email-quic_linyyuan@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit 3c162511
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

)

Bug: 260537721
[ugoswami: Fixed KMI breakage by moving the delayed_work & work_count
to a new parent structure]
Change-Id: Ia4e2521c40b9b0ffe8b6f13ec19990e7f3a60e7a
Signed-off-by: default avatarUdipto Goswami <quic_ugoswami@quicinc.com>
parent 680c1241
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment