[PATCH v2 2/3] mtd: rawnand: cadence: use dma_map_resource for sdma address

Miquel Raynal miquel.raynal at bootlin.com
Tue Jan 21 01:53:26 PST 2025


Hello,

On 16/01/2025 at 11:21:53 +08, niravkumar.l.rabara at intel.com wrote:

> From: Niravkumar L Rabara <niravkumar.l.rabara at intel.com>
>
> Map the slave DMA I/O address using dma_map_resource.
> When ARM SMMU is enabled, using a direct physical address of SDMA results
> in DMA transaction failure.

It is in general a better practice anyway. Drivers should be portable
and always remap resources.

> Fixes: ec4ba01e894d ("mtd: rawnand: Add new Cadence NAND driver to MTD subsystem")
> Cc: stable at vger.kernel.org
> Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara at intel.com>

Thanks,
Miquèl



More information about the linux-mtd mailing list