]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of/pci: Fix pci_address_to_pio() conversion of CPU address to I/O port
authorZhichang Yuan <yuanzhichang@hisilicon.com>
Fri, 24 Apr 2015 09:05:09 +0000 (17:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:05 +0000 (10:10 -0700)
commitd389ad7c0e6c02efaa3fe7992efb2452022e4b63
tree941d151b54b22fd7b61630ff65677a25eda6de2d
parent5224e2a708f617fb69ea7cb56613838af40af188
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>
drivers/of/address.c