usb: gadget: f_mass_storage: Perform async runtime resume upon set_alt
commit 82f29356 ("usb: gadget: f_mass_storage: Allow USB LPM upon ep disable") just increments power usage count by 1 for dwc3 device in thread handler. Since child count for dwc3 parent remains 0, there is possibility of dwc3 parent going into suspend even if dwc3 power usage count is set to 1. This causes unclocked register access as mdwc gets runtime suspended and mass storage thread handler disables the endpoint. Fix this issue by calling usb_gadget_autopm_get_async() in set_alt which increments dwc3 power usage count and carry out resume asynchronously. Change-Id: Iccce928590d8e67e234f0aa371f78eb1e6a326b7 Signed-off-by:Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment