summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorZhichang Yuan2018-03-14 19:15:53 +0100
committerBjorn Helgaas2018-04-04 15:42:46 +0200
commit5745392e0c2b78e0d73203281d5c42cbd6993194 (patch)
tree92b426448d08156a25b84582d7ad80c0e287d27a /include/asm-generic
parentPCI: Add fwnode handler as input param of pci_register_io_range() (diff)
downloadkernel-qcow2-linux-5745392e0c2b78e0d73203281d5c42cbd6993194.tar.gz
kernel-qcow2-linux-5745392e0c2b78e0d73203281d5c42cbd6993194.tar.xz
kernel-qcow2-linux-5745392e0c2b78e0d73203281d5c42cbd6993194.zip
PCI: Apply the new generic I/O management on PCI IO hosts
After introducing the new generic I/O space management (Logical PIO), the original PCI MMIO relevant helpers need to be updated based on the new interfaces defined in logical PIO. Adapt the corresponding code to match the changes introduced by logical PIO. Tested-by: dann frazier <dann.frazier@canonical.com> Signed-off-by: Zhichang Yuan <yuanzhichang@hisilicon.com> Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> # earlier draft Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index b7996a79d64b..5a5993166654 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -901,7 +901,7 @@ static inline void iounmap(void __iomem *addr)
#define ioport_map ioport_map
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
{
- return PCI_IOBASE + (port & IO_SPACE_LIMIT);
+ return PCI_IOBASE + (port & MMIO_UPPER_LIMIT);
}
#endif