diff options
author | Mika Westerberg <mika.westerberg@iki.fi> | 2011-06-11 08:39:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-11 16:25:15 -0700 |
commit | fa70cf472c0bc3a0d7e613a418cfc1117b796c6c (patch) | |
tree | 6f43ffed3030668cbd5e01caea8923e02c7608f9 /arch/arm | |
parent | 0b5c9db1b11d3175bb42b80663a9f072f801edf5 (diff) | |
download | lwn-fa70cf472c0bc3a0d7e613a418cfc1117b796c6c.tar.gz lwn-fa70cf472c0bc3a0d7e613a418cfc1117b796c6c.zip |
ep93xx: set DMA masks for the ep93xx_eth
Since the driver uses the DMA API, we should pass it valid DMA masks.
Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Tested-by: Petr Stetiar <ynezz@true.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-ep93xx/core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index 82079545adc4..1d4b65fd673e 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c @@ -402,11 +402,15 @@ static struct resource ep93xx_eth_resource[] = { } }; +static u64 ep93xx_eth_dma_mask = DMA_BIT_MASK(32); + static struct platform_device ep93xx_eth_device = { .name = "ep93xx-eth", .id = -1, .dev = { - .platform_data = &ep93xx_eth_data, + .platform_data = &ep93xx_eth_data, + .coherent_dma_mask = DMA_BIT_MASK(32), + .dma_mask = &ep93xx_eth_dma_mask, }, .num_resources = ARRAY_SIZE(ep93xx_eth_resource), .resource = ep93xx_eth_resource, |