]> 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)
commitea1aaa9eb5a36d95c9673536104af9091f29918b
treec379e7baa3bef5f51cf78c75b3cdbaa676745113
parentf9cd8e124bf669aeea2383cd3379e3e16e75ceea
Revert "PCI: tegra: Use PCI_CONF1_EXT_ADDRESS() macro"

This reverts commit dc74cf19b50fd34a769c52d1a6c73b0c80e39787.

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