projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef222cb
)
usb: gadget: udc-core: copy dma-related parameters from parent
author
Felipe Balbi
<balbi@ti.com>
Tue, 26 Feb 2013 08:50:42 +0000
(10:50 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 18 Mar 2013 09:17:17 +0000
(11:17 +0200)
gadget's device pointer now is guaranteed to
have valid dma_mask, dma_parms and coherent_dma_mask
fields since we're always copying from our
parent device.
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc-core.c
b/drivers/usb/gadget/udc-core.c
index 8a1eeb24ae6a13ad7d98bfe5287b37f2b2fd20fd..3e19a016c197cc167b5348520c7819b726e0de33 100644
(file)
--- a/
drivers/usb/gadget/udc-core.c
+++ b/
drivers/usb/gadget/udc-core.c
@@
-185,6
+185,10
@@
int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget)
dev_set_name(&gadget->dev, "gadget");
+ dma_set_coherent_mask(&gadget->dev, parent->coherent_dma_mask);
+ gadget->dev.dma_parms = parent->dma_parms;
+ gadget->dev.dma_mask = parent->dma_mask;
+
ret = device_register(&gadget->dev);
if (ret)
goto err2;