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:
9787d4e
)
staging: fsl-mc: set up coherent dma ops for added devices
author
Stuart Yoder
<
[email protected]
>
Mon, 11 Apr 2016 16:49:13 +0000
(11:49 -0500)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 30 Apr 2016 01:00:45 +0000
(18:00 -0700)
Unless discovered devices have the no shareability flag set,
set up coherent dma ops for them.
Signed-off-by: Stuart Yoder <
[email protected]
>
Acked-by: German Rivera <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/fsl-mc/bus/mc-bus.c
patch
|
blob
|
history
diff --git
a/drivers/staging/fsl-mc/bus/mc-bus.c
b/drivers/staging/fsl-mc/bus/mc-bus.c
index 981e4c255ca21b38090868b35df0d44dc788529f..8bf76d72e0f8248ba4eb9230324266cd5d38bede 100644
(file)
--- a/
drivers/staging/fsl-mc/bus/mc-bus.c
+++ b/
drivers/staging/fsl-mc/bus/mc-bus.c
@@
-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()
*/