author | Roger Quadros <rogerq@ti.com> | |
Thu, 28 May 2015 16:58:42 +0000 (19:58 +0300) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Tue, 23 Jun 2015 18:47:05 +0000 (13:47 -0500) | ||
commit | ec16ae5e14aa0edbdcfa66d82d83c10c9c46e080 | |
tree | 170c488c0f134c4141fef7a63a998f19c00d6c9e | tree | snapshot (tar.xz tar.gz zip) |
parent | baa516c95d27363e987c51df5edaf6176f9a6f73 | commit | diff |
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>
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 | diff | blob | history |