[PATCH 21/31] blackfin: handle page-less SG entries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: torvalds@xxxxxxxxxxxxxxxxxxxx, axboe@xxxxxxxxx
- Subject: [PATCH 21/31] blackfin: handle page-less SG entries
- From: Christoph Hellwig <hch@xxxxxx>
- Date: Wed, 12 Aug 2015 09:05:40 +0200
- Cc: dan.j.williams@xxxxxxxxx, vgupta@xxxxxxxxxxxx, hskinnemoen@xxxxxxxxx, egtvedt@xxxxxxxxxxxx, realmz6@xxxxxxxxx, dhowells@xxxxxxxxxx, monstr@xxxxxxxxx, x86@xxxxxxxxxx, dwmw2@xxxxxxxxxxxxx, alex.williamson@xxxxxxxxxx, grundler@xxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-metag@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, linux-nvdimm@xxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx
- In-reply-to: <1439363150-8661-1-git-send-email-hch@lst.de>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1439363150-8661-1-git-send-email-hch@lst.de>
Switch from sg_virt to sg_phys as blackfin like all nommu architectures
has a 1:1 virtual to physical mapping.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
arch/blackfin/kernel/dma-mapping.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/blackfin/kernel/dma-mapping.c b/arch/blackfin/kernel/dma-mapping.c
index df437e5..e2c4d1a 100644
--- a/arch/blackfin/kernel/dma-mapping.c
+++ b/arch/blackfin/kernel/dma-mapping.c
@@ -120,7 +120,7 @@ dma_map_sg(struct device *dev, struct scatterlist *sg_list, int nents,
int i;
for_each_sg(sg_list, sg, nents, i) {
- sg->dma_address = (dma_addr_t) sg_virt(sg);
+ sg->dma_address = sg_phys(sg);
__dma_sync(sg_dma_address(sg), sg_dma_len(sg), direction);
}
@@ -135,7 +135,7 @@ void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg_list,
int i;
for_each_sg(sg_list, sg, nelems, i) {
- sg->dma_address = (dma_addr_t) sg_virt(sg);
+ sg->dma_address = sg_phys(sg);
__dma_sync(sg_dma_address(sg), sg_dma_len(sg), direction);
}
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]