From: Li Yang Date: Wed, 24 Sep 2008 07:50:27 +0000 (+0800) Subject: usb/fsl_qe_udc: clear data toggle on clear halt request X-Git-Tag: v2.6.28-rc1~254^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=15d5a9acb1df1e22a7ba60aaaad758d9d71e5ea7;p=linux-2.6-omap-h63xx.git usb/fsl_qe_udc: clear data toggle on clear halt request Fix to comply with USB spec. Signed-off-by: Li Yang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c index d9aad6894b3..1fe8b44787b 100644 --- a/drivers/usb/gadget/fsl_qe_udc.c +++ b/drivers/usb/gadget/fsl_qe_udc.c @@ -1815,6 +1815,10 @@ static int qe_ep_set_halt(struct usb_ep *_ep, int value) udc->ep0_state = WAIT_FOR_SETUP; udc->ep0_dir = 0; } + + /* set data toggle to DATA0 on clear halt */ + if (value == 0) + ep->data01 = 0; out: dev_vdbg(udc->dev, "%s %s halt stat %d\n", ep->ep.name, value ? "set" : "clear", status);