PCI: mvebu: Call request_resource() on the apertures
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 12 Feb 2014 22:57:08 +0000 (15:57 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Feb 2014 20:35:20 +0000 (13:35 -0700)
commit2613ba480fb7b40c67eea36d03c9946977828623
tree11fde1037ae883acd15637fb17f3f352726f42b5
parenta723e7523c140423ddb450d2ba5c3ba44b003c69
PCI: mvebu: Call request_resource() on the apertures

It is typical for host drivers to request a resource for the aperture; once
this is done the PCI core will properly populate resources for all BARs in
the system.

With this patch cat /proc/iomem will now show:

  e0000000-efffffff : PCI MEM 0000
    e0000000-e00fffff : PCI Bus 0000:01
      e0000000-e001ffff : 0000:01:00.0

Tested on Kirkwood.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
drivers/pci/host/pci-mvebu.c