[PATCH v1] mtd: rawnand: meson: fix unaligned DMA buffers handling

Miquel Raynal miquel.raynal at bootlin.com
Mon Jun 19 01:39:50 PDT 2023


On Thu, 2023-06-15 at 08:08:15 UTC, Arseniy Krasnov wrote:
> Meson NAND controller requires 8 bytes alignment for DMA addresses,
> otherwise it "aligns" passed address by itself thus accessing invalid
> location in the provided buffer. This patch makes unaligned buffers to
> be reallocated to become valid.
> 
> Fixes: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
> Cc: <Stable at vger.kernel.org>
> Signed-off-by: Arseniy Krasnov <AVKrasnov at sberdevices.ru>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-mtd mailing list