]> git.hungrycats.org Git - linux/commit
[PATCH] ppc32: Make ppc32 PCI code more robust
authorPaul Mackerras <paulus@samba.org>
Thu, 3 Jun 2004 01:21:57 +0000 (18:21 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 01:21:57 +0000 (18:21 -0700)
commit9dfbbd917ee79f5bff02e5b67ffc10c526e4a2e3
treebe0a2c0c6d36e89d2fcc6bcaf45a6cf6d2b05972
parente7de4bdb173597e615e37c7221ba50051df2fd58
[PATCH] ppc32: Make ppc32 PCI code more robust

The main thrust of this patch is to make the ppc32 PCI code more
robust by checking for bus->resource[] being NULL before using it.  We
can legitimately get elements of bus->resource being NULL and I have
actually hit that on some machines.  This patch also allows resources
starting at 0 to be accepted as assigned (we can and do get PCI
resources starting at 0 in I/O space on PPC machines) and provides a
sensible default for the case where Open Firmware doesn't give us a
bus-range property for a PCI bridge.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/pci.c