Bin Meng
4dc8279758
spi: ich: Limit slave->max_read_size
...
Since commit 43c145b8b3 ("spi: ich: Correct max-size bug in ich_spi_adjust_size()")
(in v2020.04-rc1), SPI flash read no longer works with ICH SPI controller
in software sequencer mode.
ICH controller can only transfer a small number of bytes at once.
Before commit 43c145b8b3 , the logic happens to make sure data.nbytes
is limited to slave->max_write_size but after commit 43c145b8b3
data.nbytes is no longer limited because slave->max_read_size is not
initialized with a valid number.
Fixes: 43c145b8b3 ("spi: ich: Correct max-size bug in ich_spi_adjust_size()")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2021-08-02 15:11:40 +08:00
..
2020-12-18 20:32:21 -07:00
2021-05-05 16:12:14 +08:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-06-11 15:14:04 +05:30
2020-12-13 08:00:25 -07:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-06-28 11:57:23 +05:30
2021-06-28 11:57:23 +05:30
2021-06-28 11:57:23 +05:30
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 22:34:43 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-15 10:16:45 -05:00
2021-08-02 15:11:40 +08:00
2021-01-05 12:24:41 -07:00
2021-07-06 14:07:36 -04:00
2021-05-16 06:48:45 +02:00
2021-07-10 16:53:34 +02:00
2020-12-13 08:00:25 -07:00
2020-05-18 21:19:23 -04:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-01-24 21:39:26 +01:00
2020-12-13 08:00:25 -07:00
2021-06-28 11:55:11 +05:30
2021-01-29 10:35:14 -05:00
2021-02-02 15:33:42 -05:00
2021-07-10 18:14:54 +02:00
2021-01-05 12:26:35 -07:00
2021-02-26 15:09:38 +05:30
2020-12-18 20:32:21 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 12:26:35 -07:00
2018-05-07 09:34:12 -04:00
2020-12-22 20:39:26 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-07-06 10:38:03 -06:00
2021-06-28 11:59:35 +05:30
2021-06-28 11:56:06 +05:30
2021-06-25 20:59:45 +05:30
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-07-06 14:07:36 -04:00
2021-06-30 08:06:30 -04:00
2018-05-07 09:34:12 -04:00
2021-06-18 08:39:45 +02:00
2021-01-13 09:52:58 +01:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 12:24:40 -07:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-03-30 12:03:24 +02:00
2021-02-23 10:45:55 -05:00
2021-02-23 10:45:55 -05:00
2021-06-11 09:24:58 +02:00