Maxime Chevallier
ce99319a18
spi: Fix scatterlist elements size in spi_map_buf
...
When SPI transfers can be offloaded using DMA, the SPI core need to
build a scatterlist to make sure that the buffer to be transferred is
dma-able.
This patch fixes the scatterlist entry size computation in the case
where the maximum acceptable scatterlist entry supported by the DMA
controller is less than PAGE_SIZE, when the buffer is vmalloced.
For each entry, the actual size is given by the minimum between the
desc_len (which is the max buffer size supported by the DMA controller)
and the remaining buffer length until we cross a page boundary.
Fixes: 65598c13fd ("spi: Fix per-page mapping of unaligned vmalloc-ed buffer")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com >
Signed-off-by: Mark Brown <broonie@kernel.org >
Cc: stable@vger.kernel.org
2018-03-02 17:31:39 +00:00
..
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-06 09:59:40 -08:00
2018-02-08 15:05:16 -05:00
2018-01-10 17:50:01 +01:00
2018-02-09 09:40:33 -08:00
2018-01-19 22:59:33 -05:00
2018-02-08 11:38:59 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 16:35:31 -08:00
2018-02-11 14:34:03 -08:00
2018-02-07 11:22:44 -08:00
2018-01-08 17:57:26 +01:00
2018-02-08 10:21:39 +01:00
2018-02-02 10:01:04 -08:00
2018-02-10 13:16:35 -08:00
2018-02-03 00:26:10 -07:00
2018-02-02 09:50:51 -08:00
2018-02-11 14:34:03 -08:00
2018-01-09 20:14:23 +01:00
2018-01-23 09:04:10 +01:00
2018-02-11 14:34:03 -08:00
2018-02-08 10:44:25 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-27 09:34:22 -08:00
2018-02-01 10:31:17 -08:00
2018-02-04 10:57:43 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 12:03:54 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 16:35:31 -08:00
2018-01-17 01:19:38 -05:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-09 19:32:41 -08:00
2018-01-31 11:32:27 -08:00
2018-02-01 10:31:17 -08:00
2018-02-11 14:34:03 -08:00
2018-01-28 22:17:24 -05:00
2018-01-16 16:47:29 +01:00
2018-02-03 00:26:26 -07:00
2018-02-04 11:16:35 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 11:48:49 -08:00
2018-02-06 18:32:44 -08:00
2018-02-01 09:40:49 -08:00
2018-02-02 14:22:53 -08:00
2018-02-11 14:34:03 -08:00
2018-01-31 12:55:31 -08:00
2018-01-17 12:56:24 +01:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-23 12:17:42 -06:00
2018-01-30 12:25:59 +00:00
2018-02-05 10:07:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 10:21:39 +01:00
2018-01-09 17:01:15 +01:00
2018-02-01 16:35:31 -08:00
2018-01-22 16:45:26 +01:00
2018-03-02 17:31:39 +00:00
2018-02-01 10:37:39 +02:00
2018-02-11 14:34:03 -08:00
2018-02-09 14:49:46 -08:00
2018-01-11 18:05:06 -08:00
2018-02-06 15:04:58 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-09 16:15:20 +01:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-09 19:32:41 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 16:26:45 +02:00
2018-01-31 19:25:25 -08:00
2018-02-07 11:54:34 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 10:31:17 -08:00
2018-02-06 09:59:40 -08:00