diff options
author | David Brownell <david-b@pacbell.net> | 2006-04-02 14:18:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-04-14 14:12:24 -0400 |
commit | 68dcc688d1f042842a8fb523e4a584b3211181d1 (patch) | |
tree | 42d5baf62a53d7f295af3c600970681e95410ac2 /drivers | |
parent | 42795410c325108d59d0b1e750657197a7374c04 (diff) |
[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: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/net2280.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 7682c07035bd..6a4b93ad1082 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c | |||
@@ -2241,7 +2241,8 @@ static void handle_ep_small (struct net2280_ep *ep) | |||
2241 | if (likely (req)) { | 2241 | if (likely (req)) { |
2242 | req->td->dmacount = 0; | 2242 | req->td->dmacount = 0; |
2243 | t = readl (&ep->regs->ep_avail); | 2243 | t = readl (&ep->regs->ep_avail); |
2244 | dma_done (ep, req, count, t); | 2244 | dma_done (ep, req, count, |
2245 | (ep->out_overflow || t) ? -EOVERFLOW : 0); | ||
2245 | } | 2246 | } |
2246 | 2247 | ||
2247 | /* also flush to prevent erratum 0106 trouble */ | 2248 | /* also flush to prevent erratum 0106 trouble */ |