Commit a49a018a authored by Nicolas Pitre's avatar Nicolas Pitre

[ARM] add coherent DMA mask for mv643xx_eth

Since commit eb0519b5, mv643xx_eth is non functional on ARM because
the platform device declaration does not include any coherent DMA mask
and coherent memory allocations fail.
Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
parent 85bc2621
...@@ -144,6 +144,9 @@ static struct platform_device kirkwood_ge00 = { ...@@ -144,6 +144,9 @@ static struct platform_device kirkwood_ge00 = {
.id = 0, .id = 0,
.num_resources = 1, .num_resources = 1,
.resource = kirkwood_ge00_resources, .resource = kirkwood_ge00_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init kirkwood_ge00_init(struct mv643xx_eth_platform_data *eth_data) void __init kirkwood_ge00_init(struct mv643xx_eth_platform_data *eth_data)
...@@ -202,6 +205,9 @@ static struct platform_device kirkwood_ge01 = { ...@@ -202,6 +205,9 @@ static struct platform_device kirkwood_ge01 = {
.id = 1, .id = 1,
.num_resources = 1, .num_resources = 1,
.resource = kirkwood_ge01_resources, .resource = kirkwood_ge01_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init kirkwood_ge01_init(struct mv643xx_eth_platform_data *eth_data) void __init kirkwood_ge01_init(struct mv643xx_eth_platform_data *eth_data)
......
...@@ -82,6 +82,9 @@ static struct platform_device loki_ge0 = { ...@@ -82,6 +82,9 @@ static struct platform_device loki_ge0 = {
.id = 0, .id = 0,
.num_resources = 1, .num_resources = 1,
.resource = loki_ge0_resources, .resource = loki_ge0_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init loki_ge0_init(struct mv643xx_eth_platform_data *eth_data) void __init loki_ge0_init(struct mv643xx_eth_platform_data *eth_data)
...@@ -136,6 +139,9 @@ static struct platform_device loki_ge1 = { ...@@ -136,6 +139,9 @@ static struct platform_device loki_ge1 = {
.id = 1, .id = 1,
.num_resources = 1, .num_resources = 1,
.resource = loki_ge1_resources, .resource = loki_ge1_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init loki_ge1_init(struct mv643xx_eth_platform_data *eth_data) void __init loki_ge1_init(struct mv643xx_eth_platform_data *eth_data)
......
...@@ -321,6 +321,9 @@ static struct platform_device mv78xx0_ge00 = { ...@@ -321,6 +321,9 @@ static struct platform_device mv78xx0_ge00 = {
.id = 0, .id = 0,
.num_resources = 1, .num_resources = 1,
.resource = mv78xx0_ge00_resources, .resource = mv78xx0_ge00_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data) void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data)
...@@ -375,6 +378,9 @@ static struct platform_device mv78xx0_ge01 = { ...@@ -375,6 +378,9 @@ static struct platform_device mv78xx0_ge01 = {
.id = 1, .id = 1,
.num_resources = 1, .num_resources = 1,
.resource = mv78xx0_ge01_resources, .resource = mv78xx0_ge01_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data) void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data)
...@@ -429,6 +435,9 @@ static struct platform_device mv78xx0_ge10 = { ...@@ -429,6 +435,9 @@ static struct platform_device mv78xx0_ge10 = {
.id = 2, .id = 2,
.num_resources = 1, .num_resources = 1,
.resource = mv78xx0_ge10_resources, .resource = mv78xx0_ge10_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data) void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data)
...@@ -496,6 +505,9 @@ static struct platform_device mv78xx0_ge11 = { ...@@ -496,6 +505,9 @@ static struct platform_device mv78xx0_ge11 = {
.id = 3, .id = 3,
.num_resources = 1, .num_resources = 1,
.resource = mv78xx0_ge11_resources, .resource = mv78xx0_ge11_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data) void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data)
......
...@@ -188,6 +188,9 @@ static struct platform_device orion5x_eth = { ...@@ -188,6 +188,9 @@ static struct platform_device orion5x_eth = {
.id = 0, .id = 0,
.num_resources = 1, .num_resources = 1,
.resource = orion5x_eth_resources, .resource = orion5x_eth_resources,
.dev = {
.coherent_dma_mask = 0xffffffff,
},
}; };
void __init orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data) void __init orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment