Skip to content
Commit 593f3976 authored by Baruch Siach's avatar Baruch Siach Committed by Tom Rini
Browse files

mtd: nand: pxa3xx: fix raw read when last_chunk_size == 0



Commit 6293b036 ("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: 6293b036 ("mtd: nand: pxa3xx: add raw read support")
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
parent 79926e4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment