Revert "PCI: tegra: Use PCI_CONF1_EXT_ADDRESS() macro"
authorJon Hunter <jonathanh@nvidia.com>
Mon, 17 Oct 2022 08:40:06 +0000 (09:40 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Oct 2022 17:11:09 +0000 (12:11 -0500)
commit897a66d281983c4fe2b805f26b315309b35fb028
treec379e7baa3bef5f51cf78c75b3cdbaa676745113
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
Revert "PCI: tegra: Use PCI_CONF1_EXT_ADDRESS() macro"

This reverts commit 8bb7ff12a91429eb76e093b517ae810b146448fe.

Commit 8bb7ff12a914 ("PCI: tegra: Use PCI_CONF1_EXT_ADDRESS() macro")
updated the Tegra PCI driver to use the macro PCI_CONF1_EXT_ADDRESS()
instead of a local function in the Tegra PCI driver. This broke PCI for
some Tegra platforms because, when calculating the offset value, the mask
applied to the lower 8-bits changed from 0xff to 0xfc.

For now, fix this by reverting this commit.

Fixes: 8bb7ff12a914 ("PCI: tegra: Use PCI_CONF1_EXT_ADDRESS() macro")
Link: https://lore.kernel.org/r/20221017084006.11770-1-jonathanh@nvidia.com
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
drivers/pci/controller/pci-tegra.c