]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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, 24 Sep 2010 18:05:01 +0000 (11:05 -0700)
commita666e3e6098a9f56310e4ec2705f1dad124a34b5
treebea918dffc02612d0e41fae306711e2100a79034
parent4c647338267e14c93892f6f125f17ea2419eea51
usb: musb: gadget: restart request on clearing endpoint halt

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>
Cc: stable@kernel.org
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