diff options
Diffstat (limited to 'recipes-kernel/linux/linux-yocto-3.14/h1940/0003-ARM-s3c24xx-add-dma_coherent_mask-for-DMA-devices.patch')
-rw-r--r-- | recipes-kernel/linux/linux-yocto-3.14/h1940/0003-ARM-s3c24xx-add-dma_coherent_mask-for-DMA-devices.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto-3.14/h1940/0003-ARM-s3c24xx-add-dma_coherent_mask-for-DMA-devices.patch b/recipes-kernel/linux/linux-yocto-3.14/h1940/0003-ARM-s3c24xx-add-dma_coherent_mask-for-DMA-devices.patch new file mode 100644 index 0000000..5372b93 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-3.14/h1940/0003-ARM-s3c24xx-add-dma_coherent_mask-for-DMA-devices.patch @@ -0,0 +1,35 @@ +From acdc541821464171954cbd1a4e1a34f3e743e043 Mon Sep 17 00:00:00 2001 +From: Vasily Khoruzhick <anarsoul@gmail.com> +Date: Sun, 18 May 2014 12:44:52 +0300 +Subject: [PATCH 03/17] ARM: s3c24xx: add dma_coherent_mask for DMA devices + +Otherwise dma_alloc_coherent() fails. + +Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> +--- + arch/arm/mach-s3c24xx/common.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c +index 4adaa4b..d61f611 100644 +--- a/arch/arm/mach-s3c24xx/common.c ++++ b/arch/arm/mach-s3c24xx/common.c +@@ -383,6 +383,7 @@ struct platform_device s3c2410_device_dma = { + .resource = s3c2410_dma_resource, + .dev = { + .platform_data = &s3c2410_dma_platdata, ++ .coherent_dma_mask = ~0, + }, + }; + #endif +@@ -480,6 +481,7 @@ struct platform_device s3c2440_device_dma = { + .resource = s3c2410_dma_resource, + .dev = { + .platform_data = &s3c2440_dma_platdata, ++ .coherent_dma_mask = ~0, + }, + }; + #endif +-- +1.9.3 + |