]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: tegra: Track bus -> CPU mapping
authorThierry Reding <treding@nvidia.com>
Tue, 9 Feb 2016 14:52:32 +0000 (15:52 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 8 Mar 2016 21:42:07 +0000 (15:42 -0600)
commit75fef6ca4d8edc007c5aed51e620c96531d33367
treec390e95da41ae6927f05d3448f4ce5690ba7d9cd
parented0a8e28c87e62c891618f447fe3120a6dfa8cd7
PCI: tegra: Track bus -> CPU mapping

Track the offsets of the bus -> CPU mapping for I/O and memory.  This is
cosmetic for current Tegra chips because the offset is always 0.  But to
properly support legacy use-cases, like VGA, this would be needed so that
PCI bus addresses can be relocated.

While at it, also request the I/O resource both in physical memory and I/O
space to make /proc/iomem consistent, as well as add the I/O region to the
list of host bridge resources.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-tegra.c