]> Pileus Git - ~andy/linux/commit
parisc/PCI: lba: fix: convert to pci_create_root_bus() for correct root bus resources...
authorHelge Deller <deller@gmx.de>
Fri, 31 May 2013 22:24:58 +0000 (22:24 +0000)
committerHelge Deller <deller@gmx.de>
Sat, 1 Jun 2013 12:44:25 +0000 (14:44 +0200)
commitb204a4d2d4f2061659bb5c33f5a4013fb0f6ffbe
tree9f2f4deec31508581b8ed7d7da2f00f2da07d706
parentb47d4934e71d918814aee4a1d0211f81329b767e
parisc/PCI: lba: fix: convert to pci_create_root_bus() for correct root bus resources (v2)

commit dc7dce280a
Author: Bjorn Helgaas <bhelgaas@google.com>
Date:   Fri Oct 28 16:27:27 2011 -0600
   parisc/PCI: lba: convert to pci_create_root_bus() for correct root bus
                    resources

  Supply root bus resources to pci_create_root_bus() so they're correct
  immediately.  This fixes the problem of "early" and "header" quirks seeing
  incorrect root bus resources.

added tests for elmmio_space.start while it should use
elmmio_space.flags.  This for example led to incorrect resource
assignments and a non-working stifb framebuffer on most parisc machines.

LBA 10:1: PCI host bridge to bus 0000:01
pci_bus 0000:01: root bus resource [io  0x12000-0x13fff] (bus address [0x2000-0x3fff])
pci_bus 0000:01: root bus resource [mem 0xfffffffffa000000-0xfffffffffbffffff] (bus address [0xfa000000-0xfbffffff])
pci_bus 0000:01: root bus resource [mem 0xfffffffff4800000-0xfffffffff4ffffff] (bus address [0xf4800000-0xf4ffffff])
pci_bus 0000:01: root bus resource [??? 0x00000001 flags 0x0]

Signed-off-by: Helge Deller <deller@gmx.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/parisc/lba_pci.c