]> err.no Git - linux-2.6/commit
[POWERPC] Fix initialization and usage of dma_mask
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 6 Aug 2007 22:05:10 +0000 (08:05 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 10 Aug 2007 11:04:42 +0000 (21:04 +1000)
commit8f2ea1fd3f97ab7a809e939b5b9005a16f862439
tree032d1fff16d11eac353a1174febd70bbdbf2c991
parent939e60f6808a9ffd3a4e5f145057379c138c89aa
[POWERPC] Fix initialization and usage of dma_mask

powerpc has a couple of bugs in the usage of dma_masks that tend to
break when drivers explicitly try to set a 32-bit mask for example.

First, the code that generates the pci devices from the OF device-tree
doesn't initialize the mask properly, then our implementation of
set_dma_mask() was trying to validate the -previous- mask value, not the
one passed in as an argument.

This fixes these problems.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci_64.c
include/asm-powerpc/dma-mapping.h