]> www.infradead.org Git - users/hch/block.git/commit
PCI: altera: Fix configuration type based on secondary number
authorLey Foon Tan <ley.foon.tan@intel.com>
Wed, 12 Jun 2019 06:42:00 +0000 (14:42 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 17 Jun 2019 11:22:25 +0000 (12:22 +0100)
commit7a28db0a251ebc932a37f53a74c76e067aaac542
tree9132488885cecfff7f4c48c2c4b55a4f4452de56
parentc7ddfd3514f2702a70e9ff86504cafa856dd16b2
PCI: altera: Fix configuration type based on secondary number

Stratix 10 PCIe controller does not support Type 1 to Type 0 conversion
as previous version (V1) does so the PCIe controller configuration
mechanism needs to send Type 0 config TLP if the target bus number
matches with the secondary bus number.

Implement a function to form a TLP header that depends on the PCIe
controller version, so that the header can be formed according to
specific host controller HW internals, fixing the type conversion issue.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pcie-altera.c