usb: musb: gadget: restart request on clearing endpoint halt
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 11 Sep 2010 18:23:12 +0000 (13:23 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:43:54 +0000 (21:43 -0700)
commitcbf9ca5da6e5dbabba9df0ca0a8dbe1de1bfafbd
treebfbe2931d3e7001d3a7d98b31f2e0995f8c1a57e
parent679a100ab2728bb2fccdcfd0e18d7059de9a9067
usb: musb: gadget: restart request on clearing endpoint halt

commit a666e3e6098a9f56310e4ec2705f1dad124a34b5 upstream.

Commit 46034dca515bc4ddca0399ae58106d1f5f0d809f (USB: musb_gadget_ep0: stop
abusing musb_gadget_set_halt()) forgot to restart a queued request after
clearing the endpoint halt feature. This results in a couple of USB resets
while enumerating the file-backed storage gadget due to CSW packet not being
sent for the MODE SENSE(10) command.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.c
drivers/usb/musb/musb_gadget.h
drivers/usb/musb/musb_gadget_ep0.c