提交 0f90f25b 编写于 作者: S Stuart Yoder 提交者: Greg Kroah-Hartman

staging: fsl-mc: set up coherent dma ops for added devices

Unless discovered devices have the no shareability flag set,
set up coherent dma ops for them.
Signed-off-by: NStuart Yoder <stuart.yoder@nxp.com>
Acked-by: NGerman Rivera <german.rivera@nxp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 9787d4e0
......@@ -469,6 +469,10 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc,
goto error_cleanup_dev;
}
/* Objects are coherent, unless 'no shareability' flag set. */
if (!(obj_desc->flags & DPRC_OBJ_FLAG_NO_MEM_SHAREABILITY))
arch_setup_dma_ops(&mc_dev->dev, 0, 0, NULL, true);
/*
* The device-specific probe callback will get invoked by device_add()
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册