PCI: designware: Keep viewport fixed for IO transaction if num_viewport > 2
authorPratyush Anand <pratyush.anand@gmail.com>
Mon, 4 Jul 2016 16:14:42 +0000 (21:44 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 22 Aug 2016 17:34:43 +0000 (12:34 -0500)
commitfe48cb8538421fbd16ecf8bf95829faf8d8c001e
treee38cfb7e754dc352e03785dab0c33ab793c6c5f3
parent01c076732e8288485c22ef50f20949455a783ca9
PCI: designware: Keep viewport fixed for IO transaction if num_viewport > 2

Most of the platforms have 3 or more viewports.  For such platforms, We do
not need to share viewports between IO and CFG.  Assign viewport 2 to IO
transactions in such cases.

Tested-by: Dong Bo <dongbo4@huawei.com>
Signed-off-by: Pratyush Anand <pratyush.anand@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pci/designware-pcie.txt
drivers/pci/host/pcie-designware.c
drivers/pci/host/pcie-designware.h