CHROMIUM: usb: dwc3: rockchip: Check for plug/unplug events on resume

Check on resume if the cable state has changed to detect devices
(un)plugged during suspend.

TEST=build and boot on rk3399 board. No USB device plugged. Set
system enter suspend. Wait for device to suspend. Plug USB device.
Wakeup system; Verify USB device is enumerated.

Change-Id: Iadbefe6737fa3ddfe2da1a66473f876411a4412a
Signed-off-by: William Wu <wulf@rock-chips.com>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/395528
Reviewed-by: Guenter Roeck <groeck@chromium.org>
This commit is contained in:
William Wu
2016-11-11 16:50:21 +08:00
committed by Huang, Tao
parent de935f3325
commit 0e7d2a179d

View File

@@ -543,6 +543,9 @@ static int dwc3_rockchip_resume(struct device *dev)
rockchip->suspended = false;
if (rockchip->edev)
schedule_work(&rockchip->otg_work);
return 0;
}