From: Zhichang Yuan Date: Fri, 24 Apr 2015 09:05:09 +0000 (+0800) Subject: of/pci: Fix pci_address_to_pio() conversion of CPU address to I/O port X-Git-Tag: omap-for-v4.2/fixes-rc1^2~159^2~2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dbb4c6167229c8d4f528e8ec26699a7305000a3;p=pandora-kernel.git of/pci: Fix pci_address_to_pio() conversion of CPU address to I/O port 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 Signed-off-by: Bjorn Helgaas Acked-by: Liviu Dudau CC: stable@vger.kernel.org # v3.18+ --- Reading git-diff-tree failed