android_kernel_samsung_msm8976/arch/arm
Thomas Petazzoni 273bed2e5d ARM: 8799/1: mm: fix pci_ioremap_io() offset check
[ Upstream commit 3a58ac65e2d7969bcdf1b6acb70fa4d12a88e53e ]

IO_SPACE_LIMIT is the ending address of the PCI IO space, i.e
something like 0xfffff (and not 0x100000).

Therefore, when offset = 0xf0000 is passed as argument, this function
fails even though the offset + SZ_64K fits below the
IO_SPACE_LIMIT. This makes the last chunk of 64 KB of the I/O space
not usable as it cannot be mapped.

This patch fixes that by substracing 1 to offset + SZ_64K, so that we
compare the addrss of the last byte of the I/O space against
IO_SPACE_LIMIT instead of the address of the first byte of what is
after the I/O space.

Fixes: c279443709 ("ARM: Add fixed PCI i/o mapping")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-27 21:52:37 +02:00
..
boot ARM: 8753/1: decompressor: add a missing parameter to the addruart macro 2019-07-27 21:52:22 +02:00
common ARM: sa1111: fix pcmcia suspend/resume 2019-07-27 21:42:11 +02:00
crypto crypto: arm - ignore generated SHA2 assembly files 2019-07-27 21:50:32 +02:00
include ARM: 8772/1: kprobes: Prohibit kprobes on get_user functions 2019-07-27 21:52:22 +02:00
kernel ARM: 8771/1: kprobes: Prohibit kprobes on do_undefinstr 2019-07-27 21:52:22 +02:00
kvm KVM: arm/arm64: Close VMID generation race 2019-07-27 21:52:17 +02:00
lib ARM: 8772/1: kprobes: Prohibit kprobes on get_user functions 2019-07-27 21:52:22 +02:00
mach-at91
mach-bcm
mach-bcm2835
mach-clps711x
mach-cns3xxx
mach-davinci
mach-dove
mach-ebsa110
mach-ep93xx
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-imx
mach-integrator
mach-iop13xx
mach-iop32x
mach-iop33x
mach-ixp4xx
mach-kirkwood
mach-ks8695
mach-lpc32xx
mach-mmp
mach-msm Import latest Samsung release 2017-04-18 03:43:52 +02:00
mach-mv78xx0
mach-mvebu
mach-mxs
mach-netx
mach-nomadik
mach-omap1
mach-omap2 This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
mach-orion5x
mach-picoxcell
mach-prima2
mach-pxa
mach-realview Merge remote-tracking branch 'f2fs/linux-3.10.y' into HEAD 2017-04-18 17:02:28 +02:00
mach-rpc
mach-s3c24xx
mach-s3c64xx
mach-s5p64x0
mach-s5pc100
mach-s5pv210
mach-sa1100 ARM: sa1100: clear reset status prior to reboot 2019-07-27 21:42:11 +02:00
mach-shark
mach-shmobile
mach-socfpga This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
mach-spear
mach-sunxi
mach-tegra
mach-u300
mach-ux500 ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation 2019-07-27 21:43:01 +02:00
mach-versatile
mach-vexpress
mach-virt
mach-vt8500
mach-w90x900
mach-zynq
mm ARM: 8799/1: mm: fix pci_ioremap_io() offset check 2019-07-27 21:52:37 +02:00
net
nwfpe
oprofile
plat-iop
plat-omap
plat-orion This is the 3.10.94 stable release 2017-04-18 17:12:56 +02:00
plat-pxa
plat-samsung
plat-versatile
tools
vfp
xen
Kconfig Import latest Samsung release 2017-04-18 03:43:52 +02:00
Kconfig-nommu
Kconfig.debug Import latest Samsung release 2017-04-18 03:43:52 +02:00
Makefile Merge remote-tracking branch 'f2fs/linux-3.10.y' into HEAD 2017-04-18 17:02:28 +02:00