提交 658c8cf1 编写于 作者: F Felipe Balbi

usb: gadget: udc-core: copy dma-related parameters from parent

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: NFelipe Balbi <balbi@ti.com>
上级 ef222cb5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册