Commit:     3eb523b939d59fd90518188750c26df5d357478f
Parent:     fabca2c0a461bd82a35194e3a4bb1e98f3ffa789
Author:     Arnd Bergmann <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 27 00:02:05 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Oct 3 11:48:44 2007 +1000

    [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 <[EMAIL PROTECTED]>
    Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/kernel/pci_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 291ffbc..9f63bdc 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -588,7 +588,7 @@ int pci_proc_domain(struct pci_bus *bus)
                return 0;
        else {
                struct pci_controller *hose = pci_bus_to_host(bus);
-               return hose->buid;
+               return hose->buid != 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to