summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMayank Rana <mrana@codeaurora.org>2016-05-11 18:26:35 -0700
committerJeevan Shriram <jshriram@codeaurora.org>2016-05-18 13:39:23 -0700
commit1b30680459373432fdce21746fea58cb50e040ed (patch)
treee902419509ffd9822f40f755eeb9c7e7d6d8f461 /include/linux
parente02de095f4c7c12db7ebc973ea7d74e96a7ebfdb (diff)
usb: gadget: gsi: Decrement USB gadget pm usage count on cable disconnect
Currently USB GSI function driver increments USB gadget device's pm usage count on set_alt() and decrements on USB bus suspend or USB cable disconnect case. Current code is not decrementing this usage count when sm_state is STATE_INITIALIZED and USB cable is disconnected (i.e. event EVT_DISCONNECTED posted). Fix this issue by decrementing USB gadget device's pm usage count by addding check for event EVT_DISCONNECTED when sm_state is STATE_INITIALIZED. CRs-Fixed: 1003242 Change-Id: I4d6c9ce254f4c4139313dfd33da6c8745f34a1d3 Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions