]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix pci domain detection
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Sep 2007 14:02:05 +0000 (00:02 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 Oct 2007 01:48:44 +0000 (11:48 +1000)
commit74dafa5edc68f88bc317207575f58accc92015ed
tree8cf71ddfd32f184b5686f118d1e4ea22a5ba3565
parentd157e21d43c8e82f2b4e3a028a044fc6ce85f62c
[POWERPC] Fix pci domain detection

The /proc/bus/pci/* files list PCI domain numbers only for
devices that claim to be on a multi-domain system. The check
for this is broken on powerpc, because the buid value is
truncated to 32 bits.

There is at least one machine (IBM QS21) that only uses
the high-order bits of the buid, so the return value
of pci_proc_domain() ends up being always zero, which
makes /proc/bus/pci useless.

Change the logic to always return '1' for a nonzero
buid value.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci_64.c