usb:gadget: wait for a while before clean ep0 request
authorjzhuan5 <jin.can.zhuang@intel.com>
Thu, 24 May 2012 18:10:32 +0000 (14:10 -0400)
committerbuildbot <buildbot@intel.com>
Mon, 28 May 2012 15:50:11 +0000 (08:50 -0700)
commit10e38c96b858640227cb5cd6f44c9a8e7db54096
tree30affe35b6b22e1b57417118ef83b16a23d53423
parentb2b8d1a0a281bb90d40b9f87ad63c01101a88470
usb:gadget: wait for a while before clean ep0 request

BZ: 37568

after disconnecting pullup, any flying request should be completed or
any potential request should be added within 50ms. 50ms should be enough
considering the interrupt maximun interval. so sleeping for 50ms and
dequeuing ep0 should be able to cleanup the request in ep0.

Change-Id: I9e131cd1217ec748be7a013894ce7c63ef4214a3
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/50022
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/gadget/android.c
drivers/usb/gadget/composite.c