mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
dwc3-msm-core: Perform runtime resume with dwc3 dev instead of mdwc
mdwc device (a600000.ssusb) is parent to dwc3 device (a600000.dwc3).
With stop host mode, commit b10349def39c ("usb: dwc3-msm: Handle
potential errors in dwc3_msm_resume") is resuming mdwc device instead
of dwc3 device which is updating usage count wrongly causing mdwc
device to stay as runtime active. This result into no runtime idle
schedule to put mdwc device into low power mode causing switching
from host mode to device mode failure.
Change-Id: I2f0a6ce06cef90b22bfb5b9a2e000857a5cc0281
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
This commit is contained in:
parent
95442d514e
commit
15d7afdbd0
|
|
@ -6343,9 +6343,10 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on)
|
|||
msm_dwc3_perf_vote_update(mdwc, false);
|
||||
cpu_latency_qos_remove_request(&mdwc->pm_qos_req_dma);
|
||||
|
||||
ret = pm_runtime_resume_and_get(mdwc->dev);
|
||||
ret = pm_runtime_resume_and_get(&mdwc->dwc3->dev);
|
||||
if (ret < 0) {
|
||||
dev_err(mdwc->dev, "%s: pm_runtime_resume_and_get failed\n", __func__);
|
||||
pm_runtime_set_suspended(&mdwc->dwc3->dev);
|
||||
pm_runtime_set_suspended(mdwc->dev);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user