Message ID | 20240828063707.73869-1-ada@thorsis.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v3] mtd: rawnand: atmel: Add message on DMA usage | expand |
On Wed, 2024-08-28 at 06:37:06 UTC, Alexander Dahl wrote: > Like for other atmel drivers (serial, crypto, mmc, …), too. > > Signed-off-by: Alexander Dahl <ada@thorsis.com> > Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel
diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index dc75d50d52e8..f9ccfd02e804 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -2049,7 +2049,10 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc, dma_cap_set(DMA_MEMCPY, mask); nc->dmac = dma_request_channel(mask, NULL, NULL); - if (!nc->dmac) + if (nc->dmac) + dev_info(nc->dev, "using %s for DMA transfers\n", + dma_chan_name(nc->dmac)); + else dev_err(nc->dev, "Failed to request DMA channel\n"); }