Thomas Petazzoni
3a58ac65e2
ARM: 8799/1: mm: fix pci_ioremap_io() offset check
...
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 >
2018-09-19 10:44:14 +01:00
..
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-25 10:40:51 -05:00
2012-11-06 19:47:35 +00:00
2018-04-16 15:16:48 -07:00
2014-07-18 12:29:04 +01:00
2015-08-18 14:00:30 +01:00
2018-03-16 20:44:12 +01:00
2017-03-17 10:01:26 +00:00
2014-07-18 12:29:04 +01:00
2015-11-26 22:12:26 +00:00
2013-12-29 12:32:47 +00:00
2017-02-28 11:06:17 +00:00
2014-07-18 12:29:04 +01:00
2017-08-14 16:22:55 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2017-12-17 22:15:36 +00:00
2017-02-27 18:43:46 -08:00
2012-03-28 18:30:01 +01:00
2015-12-02 23:57:54 +00:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2018-04-05 21:36:26 -07:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2018-04-05 21:36:26 -07:00
2012-03-20 21:48:14 +08:00
2018-04-05 21:36:26 -07:00
2018-05-08 13:02:42 +02:00
2018-08-17 16:20:32 -07:00
2017-11-02 11:10:55 +01:00
2018-01-21 15:32:20 +00:00
2017-11-02 11:10:55 +01:00
2018-04-05 21:36:26 -07:00
2018-08-17 16:20:28 -07:00
2017-11-02 11:10:55 +01:00
2018-04-05 21:36:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2015-11-09 15:11:24 -08:00
2015-06-24 17:49:41 -07:00
2017-12-17 22:16:20 +00:00
2018-07-11 22:57:57 +01:00
2017-11-02 11:10:55 +01:00
2018-09-19 10:44:14 +01:00
2018-07-30 11:45:52 +01:00
2014-05-30 00:47:23 +01:00
2017-11-02 11:10:55 +01:00
2018-06-05 10:03:27 +01:00
2017-11-02 11:10:55 +01:00
2018-04-11 10:28:37 -07:00
2017-06-29 23:10:12 +01:00
2018-07-30 11:45:51 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-05-08 17:15:13 -07:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-05-19 11:53:46 +01:00
2018-05-19 11:53:46 +01:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-05-03 23:22:27 +01:00
2015-03-28 15:46:14 +00:00
2015-04-14 22:28:25 +01:00
2015-04-14 22:28:25 +01:00
2015-05-03 23:22:09 +01:00
2015-05-03 23:22:09 +01:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-05-03 23:23:09 +01:00
2018-05-31 10:39:34 +01:00
2015-12-01 21:44:25 +01:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2013-03-26 09:55:34 +00:00
2015-03-28 15:46:14 +00:00
2018-05-31 10:39:55 +01:00
2017-08-29 13:09:12 +01:00
2018-05-31 11:09:03 +01:00
2018-06-05 10:03:27 +01:00
2017-04-26 10:59:49 +01:00
2015-03-28 15:46:14 +00:00
2017-08-14 16:22:55 +01:00
2018-01-21 15:32:17 +00:00
2015-06-01 23:46:33 +01:00
2018-07-14 16:09:27 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00