spi: ich: Correct max-size bug in ich_spi_adjust_size()
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:44 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:23 +0000 (11:44 +0800)
commit43c145b8b3eeb77a31d3dd4810929b14c29003de
tree667a0ca076691f6b13d7a65013a02e40f4c3a5d8
parentc59f2ac175ec895dd7ddb7921c859c641565fef9
spi: ich: Correct max-size bug in ich_spi_adjust_size()

This incorrectly shortens read operations if there is a maximum write size
but no maximum read size. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/spi/ich.c