summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-04-05 12:37:46 +0530
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-04-07 11:43:07 +0530
commitf9979adc6de83b0a795aafc81d283eb2216c5f4a (patch)
treec9c163e2f8c14387fcc1e36f770d47bafcad40fb /net/unix/af_unix.c
parent44f5f07cfca714fa0d1b68a8f3d0f87d80a62074 (diff)
usb: gadget: f_mass_storage: Perform async runtime suspend after ep disable
commit 82f29356165b6a584 ("usb: gadget: f_mass_storage: Allow USB LPM upon ep disable") decrements power usage count by 1 for dwc3 device in thread handler as part of do_set_interface(). fsg_disable() and fsg_unbind() will raise exception for status change so that status change is handled in thread handler. Due to this, there is a chance that fsg_thread can run two times and results in calling do_set_interface() twice for disabling endpoints. This causes decrementing power usage count two times instead of 1 and power usage count can become negative. If cable is disconnected at this time, it could cause unclocked access or fsg_thread gets stuck. common->fsg bieng non NULL confirms that MSC interface is being enabled. Hence fix the issue by decrementing power usage count only right after disbling endpoints as disabling endpoints happens once due to check of common->fsg. Change-Id: Ia870838f5a7055436b7412fec5910b5cdbb42de2 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions