]> git.baikalelectronics.ru Git - kernel.git/commit
USB: musb: gadget_ep0: avoid SetupEnd interrupt
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 15 Dec 2009 11:30:01 +0000 (13:30 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:34:18 +0000 (11:34 -0800)
commit0f47245ebd701902a8dedce11404508db527f5fb
tree4759c8d6a49232047ab483a2a43daec7f869fe77
parent74848c88bde77118e37dd4cfc3df56484194074e
USB: musb: gadget_ep0: avoid SetupEnd interrupt

Gadget stalling a zero-length SETUP request results in this error message:

SetupEnd came in a wrong ep0stage idle

In order to avoid it, always set the CSR0.DataEnd bit after detecting a zero-
length request.  Add the missing '\n' to the error message itself as well...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Anand Gadiyar <gadiyar@ti.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget_ep0.c