diff options
author | Zhichang Yuan <yuanzhichang@hisilicon.com> | 2015-04-24 17:05:09 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-21 10:10:15 -0700 |
commit | 19478e63465fc22e74ab08e2a238efae7c65bb00 (patch) | |
tree | 270fbf969665ee2d67b96714df109208968d0ccb /drivers/sh | |
parent | abaa73ef5543361d480ea66f4e1fceec8a7e7a41 (diff) |
of/pci: Fix pci_address_to_pio() conversion of CPU address to I/O port
commit 5dbb4c6167229c8d4f528e8ec26699a7305000a3 upstream.
41f8bba7f555 ("of/pci: Add pci_register_io_range() and
pci_pio_to_address()") added support for systems with several I/O ranges
described by OF bindings. It modified pci_address_to_pio() look up the
io_range for a given CPU physical address, but the conversion was wrong.
Fix the conversion of address to I/O port.
[bhelgaas: changelog]
Fixes: 41f8bba7f555 ("of/pci: Add pci_register_io_range() and pci_pio_to_address()")
Signed-off-by: Zhichang Yuan <yuanzhichang@hisilicon.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions