Skip to content

Commit 9b3c395

Browse files
LeSpockymiquelraynal
authored andcommitted
mtd: rawnand: atmel: Add message on DMA usage
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> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20240828063707.73869-1-ada@thorsis.com
1 parent 9ab52d9 commit 9b3c395

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/mtd/nand/raw/atmel/nand-controller.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,10 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc,
20492049
dma_cap_set(DMA_MEMCPY, mask);
20502050

20512051
nc->dmac = dma_request_channel(mask, NULL, NULL);
2052-
if (!nc->dmac)
2052+
if (nc->dmac)
2053+
dev_info(nc->dev, "using %s for DMA transfers\n",
2054+
dma_chan_name(nc->dmac));
2055+
else
20532056
dev_err(nc->dev, "Failed to request DMA channel\n");
20542057
}
20552058

0 commit comments

Comments
 (0)