USB: musb: gadget_ep0: avoid SetupEnd interrupt
commit67024e047458edebb46559ad7db8b568f7443599
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 15 Dec 2009 11:30:01 +0000 (15 13:30 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 22:26:34 +0000 (6 14:26 -0800)
treeca14272c84853189b07a961a38096493bbe2699c
parent79ec7f562e3d0a7a78697ce3031e648e5a4cbdc2
USB: musb: gadget_ep0: avoid SetupEnd interrupt

commit 17be5c5f5ef99c94374e07f71effa78e93a20eda upstream.

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>
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