Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15d5a9ac authored by Li Yang's avatar Li Yang Committed by Greg Kroah-Hartman
Browse files

usb/fsl_qe_udc: clear data toggle on clear halt request



Fix to comply with USB spec.

Signed-off-by: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 928dfa6c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);