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

Commit 993505f6 authored by Manu Gautam's avatar Manu Gautam
Browse files

USB: ci13xxx: Mark PM runtime state as ACTIVE on probe



Device's runtime state is SUSPENDED by default. If later its
usage count is incremented using pm_runtime_get_noresume then
it won't change runtime state to ACTIVE. Nevertheless any
pm_runtime_get(/_sync) will cause the state to be changed.
As device state is ACTIVE after probe, correct the same. This
also prevents PHY/OTG driver to SUSPEND until gadget is bound
to UDC.
While we are at it change some of the pm_runtime_put_sync
calls from atomic context to pm_runtime_put.

Change-Id: Ia57fb81435905ee53e1871d51d191204787d4345
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 3d8977ea
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