mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ARM: dma: use phys_addr_t in __dma_page_[cpu_to_dev/dev_to_cpu]
On a 32 bit ARM architecture with LPAE extension physical addresses cannot fit into unsigned long variable. So fix it by using phys_addr_t instead of unsigned long. Cc: Nicolas Pitre <[email protected]> Cc: Russell King - ARM Linux <[email protected]> Cc: Catalin Marinas <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>
This commit is contained in:
parent
812b99e4b0
commit
2161c2485d
1 changed files with 2 additions and 2 deletions
|
|
@ -885,7 +885,7 @@ static void dma_cache_maint_page(struct page *page, unsigned long offset,
|
|||
static void __dma_page_cpu_to_dev(struct page *page, unsigned long off,
|
||||
size_t size, enum dma_data_direction dir)
|
||||
{
|
||||
unsigned long paddr;
|
||||
phys_addr_t paddr;
|
||||
|
||||
dma_cache_maint_page(page, off, size, dir, dmac_map_area);
|
||||
|
||||
|
|
@ -901,7 +901,7 @@ static void __dma_page_cpu_to_dev(struct page *page, unsigned long off,
|
|||
static void __dma_page_dev_to_cpu(struct page *page, unsigned long off,
|
||||
size_t size, enum dma_data_direction dir)
|
||||
{
|
||||
unsigned long paddr = page_to_phys(page) + off;
|
||||
phys_addr_t paddr = page_to_phys(page) + off;
|
||||
|
||||
/* FIXME: non-speculating: not required */
|
||||
/* don't bother invalidating if DMA to device */
|
||||
|
|
|
|||
Loading…
Reference in a new issue