diff options
author | Robin Murphy <robin.murphy@arm.com> | 2019-01-14 15:14:14 +0000 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-01-21 18:49:32 -0600 |
commit | 42e45a9449f1376d4decd751612a48f6db1f6e37 (patch) | |
tree | f9bd1596bb595d95221e764595bd2a252655dd53 /drivers/xen/pcpu.c | |
parent | bf72e42d400ace273931151b3a9bf1f8b846ec45 (diff) | |
download | linux-42e45a9449f1376d4decd751612a48f6db1f6e37.tar.bz2 |
media: s5p-mfc: Fix memdev DMA configuration
Having of_reserved_mem_device_init() forcibly reconfigure DMA for all
callers, potentially overriding the work done by a bus-specific
.dma_configure method earlier, is at best a bad idea and at worst
actively harmful. If drivers really need virtual devices to own
dma-coherent memory, they should explicitly configure those devices
based on the appropriate firmware node as they create them.
It looks like the only driver not passing in a proper OF platform device
is s5p-mfc, so move the rogue of_dma_configure() call into that driver
where it logically belongs.
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/xen/pcpu.c')
0 files changed, 0 insertions, 0 deletions