From: Benjamin Herrenschmidt Date: Mon, 6 Aug 2007 22:05:10 +0000 (+1000) Subject: [POWERPC] Fix initialization and usage of dma_mask X-Git-Tag: v2.6.23-rc3~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f2ea1fd3f97ab7a809e939b5b9005a16f862439;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed