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:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment