| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] Don't unmap the memory for dma_sync*. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Fri, 17 Oct 2008 17:48:53 -0700 |
| Cc: | "Paoletti, Tomaso" <Tomaso.Paoletti@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Thunderbird 2.0.0.16 (X11/20080723) |
Don't unmap the memory for dma_sync*.
This must have been typo, it cannot have been correct.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
arch/mips/mm/dma-default.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index 891312f..5b98d0e 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -324,7 +324,6 @@ void dma_sync_sg_for_cpu(struct device *dev, struct
scatterlist *sg, int nelems,
if (cpu_is_noncoherent_r10000(dev))
__dma_sync((unsigned long)page_address(sg_page(sg)),
sg->length, direction);
- plat_unmap_dma_mem(sg->dma_address);
}
}
@@ -342,7 +341,6 @@ void dma_sync_sg_for_device(struct device *dev, struct
scatterlist *sg, int nele
if (!plat_device_is_coherent(dev))
__dma_sync((unsigned long)page_address(sg_page(sg)),
sg->length, direction);
- plat_unmap_dma_mem(sg->dma_address);
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | MIPS: Add CONFIG_CPU_R5500 for NEC VR5500 series processors, Shinya Kuribayashi |
|---|---|
| Next by Date: | stop_this_cpu - redundant code?, Anirban Sinha |
| Previous by Thread: | MIPS: Add CONFIG_CPU_R5500 for NEC VR5500 series processors, Shinya Kuribayashi |
| Next by Thread: | Re: [PATCH] Don't unmap the memory for dma_sync*., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |