OSDN Git Service

usb: dwc3-msm: Bring controller out of LPM early upon system resume
authorHemant Kumar <hemantk@codeaurora.org>
Sun, 29 Mar 2015 07:37:04 +0000 (00:37 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:06:49 +0000 (11:06 -0700)
commitd8a457b42d7ef205d0c0636449c2af2b292e8c7f
tree7421e44cc715533616d77a3f21645c9a069ff977
parent2991c5cf8cb462971b7eee0d7197aacb8a154451
usb: dwc3-msm: Bring controller out of LPM early upon system resume

In case of host initiated usb bus resume upon system suspend controller
exits from LPM as part of dwc3 PM resume. Since call to dwc3 PM resume
from PM framework involves latency due to which usb device misses the
timeline of response for bus resume. This results into host issuing warm
reset. Hence bring controller out of LPM in power event irq thread context.
Set IRQF_EARLY_RESUME for power event irq which reduces irq level latency
by enabling this irq early during system resume. Also, save power event
irq time stamp to track latency between hard irq and irq thread.

CRs-Fixed: 804476
Change-Id: Ib5470c6046ffbfff55b89e717f040bd6435454da
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c