Skip to content

Commit

Permalink
usb/fsl_qe_udc: clear data toggle on clear halt request
Browse files Browse the repository at this point in the history
Fix to comply with USB spec.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Li Yang authored and Greg Kroah-Hartman committed Oct 17, 2008
1 parent 928dfa6 commit 15d5a9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/gadget/fsl_qe_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 15d5a9a

Please sign in to comment.