PCI: rockchip: Reconfigure configuration space header type
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 4 May 2017 02:24:51 +0000 (10:24 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 23:45:56 +0000 (18:45 -0500)
commit09cac05097535015f0a0d64c051f17fd8c65c6bb
tree2c465ba13f9d16494c68cbeee03fa9f9a53a7a58
parent5667e655e1c77e0dec3f146a0d2484818583a800
PCI: rockchip: Reconfigure configuration space header type

Per PCIe base specification (Revision 3.1a), section 7.5.3, type 1
configuration space header should be used when accessing PCIe switch.  So
we need to reconfigure the header according to the bus number we are
accessing.  Otherwise we could not visit the buses behind the switch.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-rockchip.c