[PATCH v2 3/3] mtd: rawnand: cadence: fix incorrect dev context in dma_unmap_single
Miquel Raynal
miquel.raynal at bootlin.com
Tue Jan 21 01:54:32 PST 2025
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.
> 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