diff mbox series

SH: Add dma mask for sh_eth on ecovec24.

Message ID 20181203122323.765-1-daniel@0x0f.com (mailing list archive)
State New, archived
Headers show
Series SH: Add dma mask for sh_eth on ecovec24. | expand

Commit Message

Daniel Palmer Dec. 3, 2018, 12:23 p.m. UTC
Cleans up the warnings and makes ethernet work again on the ecovec24 board.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 arch/sh/boards/mach-ecovec24/setup.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 06a894526a0b..3e8e7e915c7f 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -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,