Bin Meng 4dc8279758 spi: ich: Limit slave->max_read_size
Since commit 43c145b8b3ee ("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 43c145b8b3ee, the logic happens to make sure data.nbytes
is limited to slave->max_write_size but after commit 43c145b8b3ee
data.nbytes is no longer limited because slave->max_read_size is not
initialized with a valid number.

Fixes: 43c145b8b3ee ("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
..
2021-07-07 13:34:42 -04:00
2021-07-21 10:27:35 -06:00
2021-07-07 19:52:24 -04:00
2021-06-18 10:09:41 +02:00
2021-07-28 14:29:36 -04:00
2021-07-28 14:29:37 -04:00
2021-07-18 21:06:08 -04:00
2021-07-28 14:29:36 -04:00
2021-04-10 08:04:42 -04:00
2021-08-02 15:11:40 +08:00
2021-07-07 13:34:42 -04:00
2021-07-17 10:52:21 -04:00