mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user