]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mediatek: Fix class type for MT7622 to PCI_CLASS_BRIDGE_PCI
authorHonghui Zhang <honghui.zhang@mediatek.com>
Mon, 15 Oct 2018 08:08:53 +0000 (16:08 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 15 Oct 2018 14:10:30 +0000 (15:10 +0100)
commit96049de51c474882c650116c40b69cada3bd965d
tree1472573b7578e031eef09381d3223e3b8c0a0f73
parent67d63d30b891c301b5d63104e30e5df00bc36d80
PCI: mediatek: Fix class type for MT7622 to PCI_CLASS_BRIDGE_PCI

commit 2f0224a64492 ("PCI: mediatek: Set up vendor ID and class
type for MT7622") erroneously set the class type for MT7622 to
PCI_CLASS_BRIDGE_HOST.

The PCIe controller of MT7622 integrates a Root Port that has type 1
configuration space header and related bridge windows.

The HW default value of this bridge's class type is invalid.

Fix its class type and set it to PCI_CLASS_BRIDGE_PCI to
match the hardware implementation.

Fixes: 2f0224a64492 ("PCI: mediatek: Set up vendor ID and class type for MT7622")
Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
[lorenzo.pieralisi@arm.com: reworked the commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Ryder Lee <ryder.lee@mediatek.com>
drivers/pci/controller/pcie-mediatek.c