[PATCH v2 2/3] mtd: rawnand: cadence: use dma_map_resource for sdma address
Rabara, Niravkumar L
niravkumar.l.rabara at intel.com
Wed Jan 29 01:02:58 PST 2025
Hi Miquel,
> -----Original Message-----
> From: Miquel Raynal <miquel.raynal at bootlin.com>
> Sent: Tuesday, 21 January, 2025 5:53 PM
> To: Rabara, Niravkumar L <niravkumar.l.rabara at intel.com>
> Cc: Richard Weinberger <richard at nod.at>; Vignesh Raghavendra
> <vigneshr at ti.com>; linux at treblig.org; Shen Lichuan
> <shenlichuan at vivo.com>; Jinjie Ruan <ruanjinjie at huawei.com>; u.kleine-
> koenig at baylibre.com; linux-mtd at lists.infradead.org; linux-
> kernel at vger.kernel.org; stable at vger.kernel.org
> Subject: Re: [PATCH v2 2/3] mtd: rawnand: cadence: use dma_map_resource
> for sdma address
>
> 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.
>
Do you think the commit message below would be better, or
stick with the existing one?
Remap the slave DMA I/O resources to enhance driver portability.
Using a physical address causes DMA translation failure when the
ARM SMMU is enabled.
Thanks,
Nirav
More information about the linux-mtd
mailing list