mtd: rawnand: atmel: Add message on DMA usage
Subsystems (4)
PATCH v3 1/1 mtd: rawnand: atmel: Add message on DMA usage
Like for other atmel drivers (serial, crypto, mmc, …), too.
Signed-off-by Alexander Dahl <[email protected]>
Acked-by Nicolas Ferre <[email protected]>
---
Notes:
v3:
- adapted commit message prefix
- collected tags
v2:
- make info message conditional (thanks Miquel)
- Link: https://lore.kernel.org/linux-mtd/[email protected]/
v1:
- Link: https://lore.kernel.org/linux-mtd/[email protected]/
drivers/mtd/nand/raw/atmel/nand-controller.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/atmel/nand-controller.c +4 -1
@@ -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" ); }
base-commit: 47ac09b91befbb6a235ab620c32af719f8208399
Signature · 1 line
2.39.2
Quoted 4 lines · Alexander Dahl
Like for other atmel drivers (serial, crypto, mmc, …), too.
Signed-off-by Alexander Dahl <[email protected]>Acked-by Nicolas Ferre <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel