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

[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
...@@ -2280,9 +2280,7 @@ static void handle_ep_small (struct net2280_ep *ep) ...@@ -2280,9 +2280,7 @@ static void handle_ep_small (struct net2280_ep *ep)
/* if we wrote it all, we're usually done */ /* if we wrote it all, we're usually done */
if (req->req.actual == req->req.length) { if (req->req.actual == req->req.length) {
if (ep->num == 0) { if (ep->num == 0) {
/* wait for control status */ /* send zlps until the status stage */
if (mode != 2)
req = NULL;
} else if (!req->req.zero || len != ep->ep.maxpacket) } else if (!req->req.zero || len != ep->ep.maxpacket)
mode = 2; mode = 2;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment