projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5275455
)
usb: dwc3: gadget: fix DMA offset calculation
author
Paul Zimmerman
<Paul.Zimmerman@synopsys.com>
Fri, 30 Sep 2011 07:58:45 +0000
(10:58 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 4 Oct 2011 17:25:53 +0000
(10:25 -0700)
Fix offset calculation in dwc3_trb_dma_offset()
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/dwc3/gadget.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc3/gadget.c
b/drivers/usb/dwc3/gadget.c
index 16f2ba614fc0f013f7f3d53b1f056426a3f56e4f..ee5c1a519713cd461a8e33190f588eb364606e68 100644
(file)
--- a/
drivers/usb/dwc3/gadget.c
+++ b/
drivers/usb/dwc3/gadget.c
@@
-189,7
+189,7
@@
int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
static dma_addr_t dwc3_trb_dma_offset(struct dwc3_ep *dep,
struct dwc3_trb_hw *trb)
{
- u32 offset =
trb -
dep->trb_pool;
+ u32 offset =
(char *) trb - (char *)
dep->trb_pool;
return dep->trb_pool_dma + offset;
}