Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29a95af9 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Call pm_runtime_get/put on the parent device



Currently in start_peripheral() / start_host() the pm_runtime
get_sync() and put_sync() operations are being performed on the
dwc device. Since it is the mdwc parent device which actually
implements the callbacks to manage clocks and other resources,
it is more correct to ensure that the parent is not in suspend
to avoid any unclocked accesses.

Also replace the awkward one second delay in the A_HOST state
with proper PM autosuspend. This requires mark_last_busy() to be
called in start_host().

Change-Id: Ia8ae158f9ec7e4c91546f889892560df4b722735
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 2f43649b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment