]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:51:07 +0000 (21:51 -0700)
commit6ce3cb681079d1f8274608b05d95b665fe66ed49
treec08cf9d92f5d5e7e496fcf4b7b3a73288d939a73
parentc9c7a50d0b30c460697328552e729e9bdc7f1908
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