ARM: 7797/1: mmc: Use dma_max_pfn(dev) helper for bounce_limit calculations
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 29 Jul 2013 13:20:15 +0000 (14:20 +0100)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 12:05:45 +0000 (20:05 +0800)
commit07f22c129fda7235ab79f5e5dc7b8c113feccfc2
tree29b54afc94b9c4389f6e8ea16584f0b11f45b714
parent7b9586b50c56956fdf132c19c8ba4cd64449d678
ARM: 7797/1: mmc: Use dma_max_pfn(dev) helper for bounce_limit calculations

DMA bounce limit is the maximum direct DMA'able memory beyond which
bounce buffers has to be used to perform dma operations. MMC queue layr
relies on dma_mask but its calculation is based on max_*pfn which
don't have uniform meaning across architectures. So make use of
dma_max_pfn() which is expected to return the DMAable maximum pfn
value across architectures.

Cc: Chris Ball <cjb@laptop.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/card/queue.c