diff options
author | Baruch Siach <baruch@tkos.co.il> | 2020-04-05 19:19:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 15:17:14 -0400 |
commit | 593f3976bee1213ac8d3d124c59aefc8889edc8b (patch) | |
tree | 7213cd065f7b07979fb315a98a3c3e2827b9f8a1 /dts | |
parent | 79926e4f2f3cf84c65188c59ea1e93d6b221d36b (diff) |
mtd: nand: pxa3xx: fix raw read when last_chunk_size == 0
Commit 6293b0361d9 ("mtd: nand: pxa3xx: add raw read support") added the
local data_len variable in handle_data_pio() to track read size, but
forgot to update the condition of drain_fifo() call. That happens to
work when the layout last_chunk_size != 0. But when last_chunk_size ==
0, drain_fifo() is not called to read the last chunk, which leads to
"Wait timeout!!!" error. Fix this.
Fixes: 6293b0361d9 ("mtd: nand: pxa3xx: add raw read support")
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Diffstat (limited to 'dts')
0 files changed, 0 insertions, 0 deletions