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

Skip to content
Commit 79d75efb authored by Jack Pham's avatar Jack Pham Committed by Hemant Kumar
Browse files

usb: dwc3: gadget: remove unbalanced pm_runtime_put()



Previously the pm_runtime_get() call from __dwc3_gadget_ep_queue()
and corresponding pm_runtime_put() in dwc3_gadget_giveback() were
removed due to our modifications on how runtime PM is handled.
However commit 59d3a952e4f3 ("usb: dwc3: gadget: never call
->complete() from ->ep_queue()") was brought in via stable merge
and added back the pm_runtime_put() to the new function
dwc3_del_and_unmap_request() causing the PM usage_count to grow
more and more negative each time peripheral mode was started
and stopped. Remove this pm_runtime_put() as the negative count
causes host mode to not work due to xhci-plat child thinking that
its parent is not in RPM_ACTIVE state.

Change-Id: I5c055e26aa35d337cec7db441fe50b4ee05a7eb4
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 8f3f5311
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment