History

ep93xx: set DMA masks for the ep93xx_eth

Since the driver uses the DMA API, we should pass it valid DMA masks.

Mika Westerberg committed 15 years ago

Commit fa70cf41 parent 0b5c9db1 file · +5 −1Browse files

Unified · Split

arch/arm/mach-ep93xx/core.c+5−1
@@ -402,11 +402,15 @@ static struct resource ep93xx_eth_resource[] = { · 401 unmodified lines
402402 }
403403 };
404404
405+static u64 ep93xx_eth_dma_mask = DMA_BIT_MASK(32);
406+
405407 static struct platform_device ep93xx_eth_device = {
406408 .name = "ep93xx-eth",
407409 .id = -1,
408410 .dev = {
409− .platform_data = &ep93xx_eth_data,
411+ .platform_data = &ep93xx_eth_data,
412+ .coherent_dma_mask = DMA_BIT_MASK(32),
413+ .dma_mask = &ep93xx_eth_dma_mask,
410414 },
411415 .num_resources = ARRAY_SIZE(ep93xx_eth_resource),
412416 .resource = ep93xx_eth_resource,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t