| From d6567a62240ca32a7b4b11ef92eb1ed5ef57ae97 Mon Sep 17 00:00:00 2001 |
| From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
| Date: Sat, 15 Feb 2014 04:26:52 +0300 |
| Subject: 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> |
| (cherry picked from commit 78060840cd2286c0e382641e60dcd4145f82f881) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm/mach-shmobile/board-armadillo800eva.c | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| 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 = { |
| .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), |
| -- |
| 2.1.2 |
| |