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

Commit 317e83b8 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: net2280: send 0-length packets for ep0



This patch (as669) fixes a bug in the net2280 driver.  Now it will
properly send zero-length packets on ep0 until the control status stage
occurs.

Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a29fccd7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2280,9 +2280,7 @@ static void handle_ep_small (struct net2280_ep *ep)
		/* if we wrote it all, we're usually done */
		if (req->req.actual == req->req.length) {
			if (ep->num == 0) {
				/* wait for control status */
				if (mode != 2)
					req = NULL;
				/* send zlps until the status stage */
			} else if (!req->req.zero || len != ep->ep.maxpacket)
				mode = 2;
		}