| To: | linux-mips@linux-mips.org, ralf@linux-mips.org, linux-kernel@vger.kernel.org |
|---|---|
| Subject: | [PATCH 1/9] MIPS: Octeon: Set dma_masks for octeon_mgmt device. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Thu, 23 Sep 2010 15:38:08 -0700 |
| Cc: | David Daney <ddaney@caviumnetworks.com> |
| In-reply-to: | <1285281496-24696-1-git-send-email-ddaney@caviumnetworks.com> |
| References: | <1285281496-24696-1-git-send-email-ddaney@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
This allows follow-on patches to dma mapping functions to work with
the octeon mgmt device..
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
arch/mips/cavium-octeon/octeon-platform.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/mips/cavium-octeon/octeon-platform.c
b/arch/mips/cavium-octeon/octeon-platform.c
index 62ac30e..c32d40d 100644
--- a/arch/mips/cavium-octeon/octeon-platform.c
+++ b/arch/mips/cavium-octeon/octeon-platform.c
@@ -10,6 +10,7 @@
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/i2c.h>
+#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <linux/platform_device.h>
@@ -301,6 +302,10 @@ static int __init octeon_mgmt_device_init(void)
ret = -ENOMEM;
goto out;
}
+ /* No DMA restrictions */
+ pd->dev.coherent_dma_mask = DMA_BIT_MASK(64);
+ pd->dev.dma_mask = &pd->dev.coherent_dma_mask;
+
switch (port) {
case 0:
mgmt_port_resource.start = OCTEON_IRQ_MII0;
--
1.7.2.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/9] MIPS: Use dma-mapping-common.h and use swiotlb for Octeon., David Daney |
|---|---|
| Next by Date: | [PATCH 2/9] MIPS: Allow MAX_DMA32_PFN to be overridden., David Daney |
| Previous by Thread: | [PATCH 0/9] MIPS: Use dma-mapping-common.h and use swiotlb for Octeon., David Daney |
| Next by Thread: | [PATCH 2/9] MIPS: Allow MAX_DMA32_PFN to be overridden., David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |