MIPS: DMA: Fix computation of DMA flags from device's coherent_dma_mask.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 2 Sep 2010 21:22:23 +0000 (23:22 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:38 +0000 (15:55 -0700)
commit01ba5b05f88b590ae303e6f5fb4e31aa7cc2e407
treef78f321754981132178f15ae573bd84ee8c861a6
parentec12faab23bebcfc34b7987df4c57e5e02490e79
MIPS: DMA: Fix computation of DMA flags from device's coherent_dma_mask.

commit 3b9c6c11f519718d618f5d7c9508daf78b207f6f upstream.

This only matters for ISA devices with a 24-bit DMA limit or for devices
with a 32-bit DMA limit on systems with ZONE_DMA32 enabled.  The latter
currently only affects 32-bit PCI cards on Sibyte-based systems with more
than 1GB RAM installed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/mips/mm/dma-default.c