]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: Armadillo 800 EVA: set proper DMA masks for Ether device
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 15 Feb 2014 01:26:52 +0000 (04:26 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 17 Feb 2014 03:20:36 +0000 (12:20 +0900)
Ether MAC is a DMA-capable device and so should have 'dev.dma_mask' and
'dev.coherent_dma_mask' fields set properly, to reflect 32-bit DMA addressing
ability.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-armadillo800eva.c

index 93533e2710a83927d1935799ce56410bb26d098f..4da3da7be3fafef15e6975a451d352bd6a653c8e 100644 (file)
@@ -383,6 +383,8 @@ static struct platform_device sh_eth_device = {
        .id = -1,
        .dev = {
                .platform_data = &sh_eth_platdata,
+               .dma_mask = &sh_eth_device.dev.coherent_dma_mask,
+               .coherent_dma_mask = DMA_BIT_MASK(32),
        },
        .resource = sh_eth_resources,
        .num_resources = ARRAY_SIZE(sh_eth_resources),