diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2014-02-14 20:26:52 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-02-16 22:20:36 -0500 |
commit | 78060840cd2286c0e382641e60dcd4145f82f881 (patch) | |
tree | 4e091cce636f70a9a56027a0f1578894f43bdb7c | |
parent | 14c5ce178ee46b205ff4e9087d5ecba298798edc (diff) |
ARM: shmobile: Armadillo 800 EVA: set proper DMA masks for Ether device
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>
-rw-r--r-- | arch/arm/mach-shmobile/board-armadillo800eva.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 93533e2710a8..4da3da7be3fa 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c | |||
@@ -383,6 +383,8 @@ static struct platform_device sh_eth_device = { | |||
383 | .id = -1, | 383 | .id = -1, |
384 | .dev = { | 384 | .dev = { |
385 | .platform_data = &sh_eth_platdata, | 385 | .platform_data = &sh_eth_platdata, |
386 | .dma_mask = &sh_eth_device.dev.coherent_dma_mask, | ||
387 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
386 | }, | 388 | }, |
387 | .resource = sh_eth_resources, | 389 | .resource = sh_eth_resources, |
388 | .num_resources = ARRAY_SIZE(sh_eth_resources), | 390 | .num_resources = ARRAY_SIZE(sh_eth_resources), |