[PATCH v2 3/3] mtd: rawnand: r852: bounce non-linear-map buffers
Ping Li
leeonion.muyu at gmail.com
Wed Nov 25 01:25:27 PST 2026
From: leeonion.muyu at gmail.com
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
More information about the linux-mtd
mailing list