PCI: vmd: Fix config addressing when using bus offsets
authorJon Derrick <jonathan.derrick@intel.com>
Mon, 16 Sep 2019 13:54:34 +0000 (07:54 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 17 Sep 2019 16:39:08 +0000 (17:39 +0100)
commite3dffa4f6c3612dea337c9c59191bd418afc941b
treee20f9e7b845078a9e85331dd4df80a1eb54123f1
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
PCI: vmd: Fix config addressing when using bus offsets

VMD maps child device config spaces to the VMD Config BAR linearly
regardless of the starting bus offset. Because of this, the config
address decode must ignore starting bus offsets when mapping the BDF to
the config space address.

Fixes: 2a5a9c9a20f9 ("PCI: vmd: Add offset to bus numbers if necessary")
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org # v5.2+
drivers/pci/controller/vmd.c