Commit 37cecd92 authored by Peter Chen's avatar Peter Chen Committed by Amit Pundir
Browse files

UPSTREAM: usb: chipidea: vbus event may exist before starting gadget



At some situations, the vbus may already be there before starting
gadget. So we need to check vbus event after switching to gadget in
order to handle missing vbus event. The typical use cases are plugging
vbus cable before driver load or the vbus has already been there
after stopping host but before starting gadget.

Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Tested-by: default avatarStephen Boyd <stephen.boyd@linaro.org>
Reported-by: default avatarStephen Boyd <stephen.boyd@linaro.org>
(cherry picked from commit c3b674a0)
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 70adccb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment