Re: [PATCH v2 3/3] mtd: rawnand: r852: bounce non-linear-map buffers
From: Ping Li
Date: Wed Nov 25 2026 - 04:25:37 EST
From: leeonion.muyu@xxxxxxxxx
Hi Miquel,
On 25/11/2026 at 09:55:13 +01, Miquel Raynal wrote:
> Why do we need a local bounce if the core can do it with
> NAND_USES_DMA?
You are right, declaring NAND_USES_DMA is the consistent approach
with the other controllers in this series, and I will rework this
patch that way. One part of the local check needs to stay though:
the 512-byte alignment condition. The hardware requires
R852_DMA_LEN alignment, which the core condition (chip->buf_align,
default 1) does not know about, so misaligned linear buffers still
need the pre-existing local bounce. The virt_addr_valid() part of
the local condition becomes redundant once the core bounces the
non-linear-map buffers, and v3 reverts it to the original form.
> Also please add Cc: stable to these three patches.
Done in v3, thanks.
Ping