mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-14 09:09:56 +00:00
usb: gadget: net2280: Fix superspeed dma_done()
Parameter three in function call dma_done() is incorrect. Move use of variable 'tmp' after if-condition. Signed-off-by: Mario Schuknecht <mario.schuknecht@dresearch-fe.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
b2ba27a5c5
commit
18a4e65f22
@ -1118,10 +1118,10 @@ static void scan_dma_completions(struct net2280_ep *ep)
|
||||
break;
|
||||
} else if (!ep->is_in &&
|
||||
(req->req.length % ep->ep.maxpacket) != 0) {
|
||||
tmp = readl(&ep->regs->ep_stat);
|
||||
if (ep->dev->quirks & PLX_SUPERSPEED)
|
||||
return dma_done(ep, req, tmp, 0);
|
||||
|
||||
tmp = readl(&ep->regs->ep_stat);
|
||||
/* AVOID TROUBLE HERE by not issuing short reads from
|
||||
* your gadget driver. That helps avoids errata 0121,
|
||||
* 0122, and 0124; not all cases trigger the warning.
|
||||
|
Loading…
x
Reference in New Issue
Block a user