[PATCH v3 3/3] mtd: rawnand: r852: declare NAND_USES_DMA
Miquel Raynal
miquel.raynal at bootlin.com
Wed Nov 25 01:48:45 PST 2026
> + /*
> + * r852_do_dma() feeds the buffers provided by the NAND core
> + * straight to dma_map_single(), so ask nand_base to bounce
> + * non-linear-map buffers. The local bounce in r852_do_dma()
> + * is still needed for the hardware's 512-byte alignment
> + * requirement, which the core condition (chip->buf_align,
> + * default 1) does not cover.
Can't we change the default for this chip then?
Please drop this comment after fixing that, it is not useful, this is
information that should belong in the commit log.
> + */
> + dev->chip->options |= NAND_USES_DMA;
> +
> r852_engine_enable(dev);
>
> if (sm_register_device(mtd, dev->sm))
More information about the linux-mtd
mailing list