aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/fsl_qe_udc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c
index d9aad6894b3e..1fe8b44787b3 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)
1815 udc->ep0_state = WAIT_FOR_SETUP; 1815 udc->ep0_state = WAIT_FOR_SETUP;
1816 udc->ep0_dir = 0; 1816 udc->ep0_dir = 0;
1817 } 1817 }
1818
1819 /* set data toggle to DATA0 on clear halt */
1820 if (value == 0)
1821 ep->data01 = 0;
1818out: 1822out:
1819 dev_vdbg(udc->dev, "%s %s halt stat %d\n", ep->ep.name, 1823 dev_vdbg(udc->dev, "%s %s halt stat %d\n", ep->ep.name,
1820 value ? "set" : "clear", status); 1824 value ? "set" : "clear", status);