projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c611ccb
)
usb: dwc3: gadget: set request dma to invalid when unmapping
author
Felipe Balbi
<balbi@ti.com>
Sat, 27 Aug 2011 12:10:09 +0000
(15:10 +0300)
committer
Felipe Balbi
<balbi@ti.com>
Fri, 9 Sep 2011 10:02:01 +0000
(13:02 +0300)
if we don't set DMA address to invalid when unmapping,
we might fall in a situation where request buffer
can't be mapped to DMA again.
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/gadget.c
b/drivers/usb/dwc3/gadget.c
index 2ee6714bda4be89c8bb78ece8248ad89807fbd31..4d232c3646cc31ea86479ad99434e663e18f15ae 100644
(file)
--- a/
drivers/usb/dwc3/gadget.c
+++ b/
drivers/usb/dwc3/gadget.c
@@
-83,6
+83,7
@@
void dwc3_unmap_buffer_from_dma(struct dwc3_request *req)
req->request.length, req->direction
? DMA_TO_DEVICE : DMA_FROM_DEVICE);
req->mapped = 0;
+ req->request.dma = DMA_ADDR_INVALID;
} else {
dma_sync_single_for_cpu(dwc->dev, req->request.dma,
req->request.length, req->direction