[PATCH v2 3/3] mtd: rawnand: cadence: fix incorrect dev context in dma_unmap_single

Rabara, Niravkumar L niravkumar.l.rabara at intel.com
Wed Jan 29 00:58:56 PST 2025


Hi Miquel,

> -----Original Message-----
> From: Miquel Raynal <miquel.raynal at bootlin.com>
> Sent: Tuesday, 21 January, 2025 5:55 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 3/3] mtd: rawnand: cadence: fix incorrect dev context
> in dma_unmap_single
> 
> Hello,
> 
> On 16/01/2025 at 11:21:54 +08, niravkumar.l.rabara at intel.com wrote:
> 
> > From: Niravkumar L Rabara <niravkumar.l.rabara at intel.com>
> >
> > dma_map_single is using dma_dev->dev, however dma_unmap_single is
> > using cdns_ctrl->dev, which is incorrect.
> > Used the correct device context dma_dev->dev for dma_unmap_single.
> 
> I guess on is the physical/bus device and the other the framework device? It
> would be nice to clarify this in the commit log.
> 

Noted. Is the commit message below acceptable? 

dma_map_single is using physical/bus device (DMA) but dma_unmap_single
is using framework device(NAND controller), which is incorrect.
Fixed dma_unmap_single to use correct physical/bus device.

Thanks,
Nirav


More information about the linux-mtd mailing list