UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 1 Mar 2017 10:04:00 +0000 (18:04 +0800)
commit3f083a523be4ffda44328cfe5a08361ca601bc90
tree72b64444a458c4d9e7a2cd49d90e0e3023335957
parent52b7442b0564902c20cbb3d91220965f1c7e3aaa
UPSTREAM: 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.

Change-Id: Ia33bc0c10970649cc86bd02136f0ee997f18246d
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from 5800790a925b0aefb621ae3da86668c3a2867750)
drivers/pci/host/pcie-rockchip.c