Commit 68dcc688 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: net2280 short rx status fix

Some patch broke short-OUT packet handling for net2280, making it report
illegal status values.  This updates the status code so it's correct.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 42795410
...@@ -2241,7 +2241,8 @@ static void handle_ep_small (struct net2280_ep *ep) ...@@ -2241,7 +2241,8 @@ static void handle_ep_small (struct net2280_ep *ep)
if (likely (req)) { if (likely (req)) {
req->td->dmacount = 0; req->td->dmacount = 0;
t = readl (&ep->regs->ep_avail); t = readl (&ep->regs->ep_avail);
dma_done (ep, req, count, t); dma_done (ep, req, count,
(ep->out_overflow || t) ? -EOVERFLOW : 0);
} }
/* also flush to prevent erratum 0106 trouble */ /* also flush to prevent erratum 0106 trouble */
......
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