From: Grygorii Strashko Date: Thu, 24 Apr 2014 15:30:05 +0000 (-0400) Subject: ARM: dma: Use dma_pfn_offset for dma address translation X-Git-Tag: omap-for-v3.16/fixes-against-rc1~52^2~4^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ce0d20016925d031f1e24d64302e4c976d7cec6;p=pandora-kernel.git ARM: dma: Use dma_pfn_offset for dma address translation In most of cases DMA addresses can be performed using offset value of Bus address space relatively to physical address space as following: PFN->DMA: __pfn_to_phys(pfn + [-]dma_pfn_offset) DMA->PFN: __phys_to_pfn(dma_addr) + [-]dma_pfn_offset Thanks to Russell King for suggesting the optimised macro's for conversion. Cc: Greg Kroah-Hartman Cc: Russell King Cc: Arnd Bergmann Cc: Olof Johansson Cc: Grant Likely Cc: Catalin Marinas Cc: Linus Walleij Reviewed-by: Rob Herring Signed-off-by: Grygorii Strashko Signed-off-by: Santosh Shilimkar --- Reading git-diff-tree failed