]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf2d2bcd8f200e816cc95394444f4f4466d91423
treec379e7baa3bef5f51cf78c75b3cdbaa676745113
parent6358759813eb1920a7e9bc57799a80a94f6c66b8
Revert "PCI: tegra: Use PCI_CONF1_EXT_ADDRESS() macro"

This reverts commit 143666fb7d0c62c28911d9af78a97af9adbd62ac.

Commit 143666fb7d0c ("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: 143666fb7d0c ("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