From: Felix Fietkau Date: Wed, 26 Nov 2014 18:48:05 +0000 (+0000) Subject: cns3xxx: add missing dma mask for ethernet device X-Git-Tag: reboot~5225 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d0e4f71b9a8a777cde46bfd967b2ba1e1a99740a;p=openwrt%2Fstaging%2Fjogo.git cns3xxx: add missing dma mask for ethernet device Signed-off-by: Felix Fietkau SVN-Revision: 43399 --- diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c index 8ab52098ac..99c4108b2f 100644 --- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c +++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c @@ -341,12 +341,17 @@ static struct resource laguna_net_resource[] = { } }; +static u64 laguna_net_dmamask = DMA_BIT_MASK(32); static struct platform_device laguna_net_device = { .name = "cns3xxx_eth", .id = 0, .resource = laguna_net_resource, .num_resources = ARRAY_SIZE(laguna_net_resource), - .dev.platform_data = &laguna_net_data, + .dev = { + .dma_mask = &laguna_net_dmamask, + .coherent_dma_mask = DMA_BIT_MASK(32), + .platform_data = &laguna_net_data, + } }; /*