PCI: rockchip: Set vendor ID from local core config space
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 16 Feb 2017 07:29:35 +0000 (15:29 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Feb 2017 20:13:05 +0000 (14:13 -0600)
commit5800790a925b0aefb621ae3da86668c3a2867750
tree6f4ccd0eaa6ddb1210dc7093cdd70e787c3c23f5
parentf1d722b607d610b66785f7f00d2e1d457260647c
PCI: rockchip: Set vendor ID from local core config space

The TRM says the vendor ID in the RC's configure space can be rewritten
and the value must be the same as the value read from the local core
configure space.  But we misread that and didn't notice it before.  Actually
we should only able to rewrite it from the local core configure space.

Fix that issue to make lspci show the correct IP vendor infomation.

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