linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/5] ep93xx: set DMA masks for the ep93xx_eth
@ 2011-06-11 18:39 Mika Westerberg
  2011-06-11 18:39 ` [PATCH v3 2/5] net: ep93xx_eth: pass struct device to DMA API functions Mika Westerberg
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Mika Westerberg @ 2011-06-11 18:39 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 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 8207954..1d4b65f 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,
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-11 23:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-11 18:39 [PATCH v3 1/5] ep93xx: set DMA masks for the ep93xx_eth Mika Westerberg
2011-06-11 18:39 ` [PATCH v3 2/5] net: ep93xx_eth: pass struct device to DMA API functions Mika Westerberg
2011-06-11 23:25   ` David Miller
2011-06-11 18:39 ` [PATCH v3 3/5] net: ep93xx_eth: allocate buffers using kmalloc() Mika Westerberg
2011-06-11 23:25   ` David Miller
2011-06-11 18:39 ` [PATCH v3 4/5] net: ep93xx_eth: drop GFP_DMA from call to dma_alloc_coherent() Mika Westerberg
2011-06-11 23:25   ` David Miller
2011-06-11 18:39 ` [PATCH v3 5/5] net: ep93xx_eth: fix DMA API violations Mika Westerberg
2011-06-11 23:26   ` David Miller
2011-06-11 23:25 ` [PATCH v3 1/5] ep93xx: set DMA masks for the ep93xx_eth David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).