From: Tom Rini Date: Sun, 26 Apr 2020 07:26:10 -0400 Subject: [PATCH] mtd: nand: pxa3xx: fix raw read when last_chunk_size == 0 In-Reply-To: References: Message-ID: <20200426112610.GO4555@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Apr 05, 2020 at 07:19:31PM +0300, Baruch Siach wrote: > 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 > Signed-off-by: Baruch Siach Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: