MIPS: Alchemy: change dbdma to accept physical memory addresses

DMA can only be done from physical addresses; move the "virt_to_phys"
source/destination buffer address translation from the dbdma queueing
functions (since the hardware can only DMA to/from physical addresses)
to their respective users.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Manuel Lauss
2009-10-13 20:22:35 +02:00
committed by Ralf Baechle
부모 ea071cc705
커밋 963accbc82
7개의 변경된 파일26개의 추가작업 그리고 26개의 파일을 삭제

파일 보기

@@ -651,10 +651,10 @@ static int au1xmmc_prepare_data(struct au1xmmc_host *host,
if (host->flags & HOST_F_XMIT) {
ret = au1xxx_dbdma_put_source(channel,
(void *)sg_virt(sg), len, flags);
sg_phys(sg), len, flags);
} else {
ret = au1xxx_dbdma_put_dest(channel,
(void *)sg_virt(sg), len, flags);
sg_phys(sg), len, flags);
}
if (!ret)