Skip to contentSkip to conversation

SH: Add dma mask for sh_eth on ecovec24.

PATCH New Daniel Palmer 1 participant 1 message Dec 3, 2018 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SH: Add dma mask for sh_eth on ecovec24.

Cleans up the warnings and makes ethernet work again on the ecovec24 board.

---
 arch/sh/boards/mach-ecovec24/setup.c | 2 ++
 1 file changed, 2 insertions(+)
arch/sh/boards/mach-ecovec24/setup.c +2 -0
index 06a894526a0b..3e8e7e915c7f 100644
@@ -175,6 +175,8 @@ static struct platform_device sh_eth_device = {
 	.id = 0,
 	.dev = {
 		.platform_data = &sh_eth_plat,
+		.dma_mask = &sh_eth_device.dev.coherent_dma_mask,
+		.coherent_dma_mask = DMA_BIT_MASK(32),
 	},
 	.num_resources = ARRAY_SIZE(sh_eth_resources),
 	.resource = sh_eth_resources,
Signature · 1 line
2.20.0.rc1