]> Pileus Git - ~andy/linux/commit
usb: dwc3: gadget: don't call stop_active_transfers() on disconnect
authorFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 06:18:12 +0000 (09:18 +0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 08:22:32 +0000 (11:22 +0300)
commit1e2360eadaa33c09bb72afb14f74b6c6ab2aca66
tree458ca142eaa839ac7bb62e38526994ce6eb243ec
parentea53b8828c50b7a5138a8931c41b2671682c86b5
usb: dwc3: gadget: don't call stop_active_transfers() on disconnect

In case we get disconnected, we will call gadget
driver's disconnect method, which should make
sure to disable all endpoints. At that point
we will call stop_active_transfers() to make
sure we didn't leave any pending request on the
controller.

Tested-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c