]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
usb: dwc3: core: don't break during suspend/resume while we're dual-role
authorRoger Quadros <rogerq@ti.com>
Thu, 28 May 2015 16:58:42 +0000 (19:58 +0300)
committerPraneeth Bajjuri <praneeth@ti.com>
Tue, 23 Jun 2015 18:47:05 +0000 (13:47 -0500)
commitec16ae5e14aa0edbdcfa66d82d83c10c9c46e080
tree170c488c0f134c4141fef7a63a998f19c00d6c9e
parentbaa516c95d27363e987c51df5edaf6176f9a6f73
usb: dwc3: core: don't break during suspend/resume while we're dual-role

We can't rely just on dr_mode to decide if we're in host or gadget
mode when we're configured as otg/dual-role. So while dr_mode is
OTG, we find out from  the otg state machine if we're in host
or gadget mode and take the necessary actions during suspend/resume.

Also make sure that we disable OTG irq and events during system suspend
so that we don't lockup the system during system suspend/resume.

Known Issue:
when otg-host, usb device disconnects and reconnects after system suspend/resume.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/usb/dwc3/core.c