]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix bogus test for unassigned PCI resources
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 29 Feb 2008 03:58:03 +0000 (14:58 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 12 Mar 2008 23:09:27 +0000 (10:09 +1100)
commit7f172890a8f8744c4005c267ae9e228411ab173f
treed4f5b06cf762d3ec2c61021d36f88e6e0564b199
parent595be948cce574ff2d5dde5d0426a636a4363c70
[POWERPC] Fix bogus test for unassigned PCI resources

A bogus test for unassigned resources that came from our 32-bit
PCI code ended up being "merged" by my previous patch series,
breaking some 64-bit setups where devices have legal resources
ending at 0xffffffff.

This fixes it by completely changing the test.  We now test for
res->start == 0, as the generic code expects, and we also only
do so on platforms that don't have the PPC_PCI_PROBE_ONLY flag
set, as there are cases of pSeries and iSeries where it could
be a valid value and those can't reassign devices.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci-common.c