summaryrefslogtreecommitdiff
path: root/target/linux/cns3xxx/files/arch/arm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-11-26 18:48:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-11-26 18:48:05 +0000
commitd0e4f71b9a8a777cde46bfd967b2ba1e1a99740a (patch)
tree40a94175d547e733c108ae03285825c11568f503 /target/linux/cns3xxx/files/arch/arm
parentebf6331c10774ebc3ef70b0598871bcd42ac7417 (diff)
downloadmtk-20170518-d0e4f71b9a8a777cde46bfd967b2ba1e1a99740a.zip
mtk-20170518-d0e4f71b9a8a777cde46bfd967b2ba1e1a99740a.tar.gz
mtk-20170518-d0e4f71b9a8a777cde46bfd967b2ba1e1a99740a.tar.bz2
cns3xxx: add missing dma mask for ethernet device
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43399
Diffstat (limited to 'target/linux/cns3xxx/files/arch/arm')
-rw-r--r--target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c7
1 files changed, 6 insertions, 1 deletions
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 8ab5209..99c4108 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,
+ }
};
/*