]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit56e75e2a15d0b28261503d415eb56bb4c2b92be5
treec390e95da41ae6927f05d3448f4ce5690ba7d9cd
parent8493a952432bf00138b3d3c53a9300e353c18a6d
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