]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Add validation that PCIe core is set to correct mode
authorJonathan Chocron <jonnyc@amazon.com>
Thu, 12 Sep 2019 13:02:38 +0000 (16:02 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Sep 2019 13:17:15 +0000 (14:17 +0100)
commit1014da546a8b42372973e1faa056d92f8809c4b8
tree085ed446d1c3e5c30d6c58d3df950a8701f4f159
parent15e4aba7b1f3f68e5de96e6beb455d360d335006
PCI: dwc: Add validation that PCIe core is set to correct mode

Some PCIe controllers can be set to either Host or EP according to some
early boot FW. To make sure there is no discrepancy (e.g. FW configured
the port to EP mode while the DT specifies it as a host bridge or vice
versa), a check has been added for each mode.

Signed-off-by: Jonathan Chocron <jonnyc@amazon.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware-host.c