pci: intel: Fix configuration type based on secondary number
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 24 May 2019 02:30:00 +0000 (10:30 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 11 Aug 2019 20:43:41 +0000 (16:43 -0400)
commitd44f793207973845fdaa0c539bed785607659bab
tree1221a2036460f1beba4043c83974d8d737ae4218
parentbf9b9813ad6c4727f733828a100267601cef52d2
pci: intel: Fix configuration type based on secondary number

This fix issue when access config from PCIe switch.

The PCIe controller need to send Type 0 config TLP if the targeting bus
matches with the secondary bus number, which is when the TLP is targeting
the immediate device on the link.

The PCIe controller send Type 1 config TLP if the targeting bus is
larger than the secondary bus, which is when the TLP is targeting the
device not immediate on the link.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
drivers/pci/pcie_intel_fpga.c