1 From: Nicolas Pitre <nico@cam.org>
2 Date: Fri, 22 May 2009 20:53:40 +0000 (-0400)
3 Subject: [ARM] add coherent DMA mask for mv643xx_eth
4 X-Git-Url: http://git.marvell.com/?p=orion.git;a=commitdiff_plain;h=a49a018a6ea6d73742a81d673fe5ec4a7d2137b3
6 [ARM] add coherent DMA mask for mv643xx_eth
8 Since commit eb0519b5a1cf, mv643xx_eth is non functional on ARM because
9 the platform device declaration does not include any coherent DMA mask
10 and coherent memory allocations fail.
12 Signed-off-by: Nicolas Pitre <nico@marvell.com>
15 --- a/arch/arm/mach-kirkwood/common.c
16 +++ b/arch/arm/mach-kirkwood/common.c
17 @@ -144,6 +144,9 @@ static struct platform_device kirkwood_g
20 .resource = kirkwood_ge00_resources,
22 + .coherent_dma_mask = 0xffffffff,
26 void __init kirkwood_ge00_init(struct mv643xx_eth_platform_data *eth_data)
27 @@ -202,6 +205,9 @@ static struct platform_device kirkwood_g
30 .resource = kirkwood_ge01_resources,
32 + .coherent_dma_mask = 0xffffffff,
36 void __init kirkwood_ge01_init(struct mv643xx_eth_platform_data *eth_data)
37 --- a/arch/arm/mach-loki/common.c
38 +++ b/arch/arm/mach-loki/common.c
39 @@ -82,6 +82,9 @@ static struct platform_device loki_ge0 =
42 .resource = loki_ge0_resources,
44 + .coherent_dma_mask = 0xffffffff,
48 void __init loki_ge0_init(struct mv643xx_eth_platform_data *eth_data)
49 @@ -136,6 +139,9 @@ static struct platform_device loki_ge1 =
52 .resource = loki_ge1_resources,
54 + .coherent_dma_mask = 0xffffffff,
58 void __init loki_ge1_init(struct mv643xx_eth_platform_data *eth_data)
59 --- a/arch/arm/mach-mv78xx0/common.c
60 +++ b/arch/arm/mach-mv78xx0/common.c
61 @@ -321,6 +321,9 @@ static struct platform_device mv78xx0_ge
64 .resource = mv78xx0_ge00_resources,
66 + .coherent_dma_mask = 0xffffffff,
70 void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data)
71 @@ -375,6 +378,9 @@ static struct platform_device mv78xx0_ge
74 .resource = mv78xx0_ge01_resources,
76 + .coherent_dma_mask = 0xffffffff,
80 void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data)
81 @@ -429,6 +435,9 @@ static struct platform_device mv78xx0_ge
84 .resource = mv78xx0_ge10_resources,
86 + .coherent_dma_mask = 0xffffffff,
90 void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data)
91 @@ -496,6 +505,9 @@ static struct platform_device mv78xx0_ge
94 .resource = mv78xx0_ge11_resources,
96 + .coherent_dma_mask = 0xffffffff,
100 void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data)
101 --- a/arch/arm/mach-orion5x/common.c
102 +++ b/arch/arm/mach-orion5x/common.c
103 @@ -188,6 +188,9 @@ static struct platform_device orion5x_et
106 .resource = orion5x_eth_resources,
108 + .coherent_dma_mask = 0xffffffff,
112 void __init orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data)