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

Skip to content
Commit 0456eb2d authored by Mayank Rana's avatar Mayank Rana Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: f_mass_storage: Allow USB LPM upon ep disable



Upon cable disconnect, there is a possibility of USB LPM
before file-storage thread run to completion. This causes
ep dequeue to fail and results into thread to block for
ever. Prevent this situation by incrementing power usage
count on gadget parent upon ep enable and decrement it
upon ep disable and allow USB LPM after that.

Change-Id: Ic3633320de6ebef912bdaeac305b3dd0df3eb8e0
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent df485206
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