PCI: mvebu: Support a bridge with no IO port window
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tue, 26 Nov 2013 18:02:55 +0000 (11:02 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 26 Nov 2013 18:36:32 +0000 (11:36 -0700)
commit641e674d6c0f974162c4c8cc0081c7ffc50b3911
treef890659bf71b35ede986cff364b75f2c8c221680
parent43a16f94445310800e39d54aaa534f2ce7dbe0a2
PCI: mvebu: Support a bridge with no IO port window

Make pcie-io-aperture and the IO port MBUS ID in ranges optional.  If not
provided the bridge reports to Linux that IO space mapping is not supported
and refuses to configure an IO MBUS window.

This allows both complete disable (do not specify pcie-io-aperture) and
per-port disable (do not specify a IO target ranges entry for the port).

Most PCIe devices these days do not require IO support to function, so
having an option to disable it in the driver is useful.

Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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