]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers: cma: represent physical addresses as phys_addr_t
authorVitaly Andrianov <vitalya@ti.com>
Wed, 5 Dec 2012 14:29:25 +0000 (09:29 -0500)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 11 Dec 2012 08:28:09 +0000 (09:28 +0100)
commit4009793e15d44469da1547a46ab129cc08ffa503
tree7d5e89b42669f647278d21284517f3256d051259
parent387870f2d6d679746020fa8e25ef786ff338dc98
drivers: cma: represent physical addresses as phys_addr_t

This commit changes the CMA early initialization code to use phys_addr_t
for representing physical addresses instead of unsigned long.

Without this change, among other things, dma_declare_contiguous() simply
discards any memory regions whose address is not representable as unsigned
long.

This is a problem on 32-bit PAE machines where unsigned long is 32-bit
but physical address space is larger.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/base/dma-contiguous.c
include/linux/dma-contiguous.h