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:Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by:
Linyu Yuan <quic_linyyuan@quicinc.com> Link: https://lore.kernel.org/r/1650881886-25530-3-git-send-email-quic_linyyuan@quicinc.com Signed-off-by:
Greg 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:
Udipto Goswami <quic_ugoswami@quicinc.com>
Loading
Please sign in to comment