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)
commit17be5c5f5ef99c94374e07f71effa78e93a20eda
tree4759c8d6a49232047ab483a2a43daec7f869fe77
parent93aa3dab008421789aa0f8865a62a52ae13269a3
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