ARM: ux500: set coherent_dma_mask for dma40
authorFabio Baltieri <fabio.baltieri@linaro.org>
Thu, 13 Jun 2013 13:56:03 +0000 (15:56 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 19 Aug 2013 20:49:25 +0000 (22:49 +0200)
Set coherent_dma_mask to DMA_BIT_MASK(32) for dma40 platform_device, as
without this DMA allocations were failing with the error:

dma40 dma40.0: coherent DMA mask is unset

when booting without device-tree.

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/devices-db8500.c

index 516a6f57d1598b2379c623c24cc88362389eea7f..bc316062e0c23661c118429036207e50911ffebb 100644 (file)
@@ -49,6 +49,7 @@ struct stedma40_platform_data dma40_plat_data = {
 struct platform_device u8500_dma40_device = {
        .dev = {
                .platform_data = &dma40_plat_data,
+               .coherent_dma_mask = DMA_BIT_MASK(32),
        },
        .name = "dma40",
        .id = 0,