* [PATCH v3] mtd: rawnand: atmel: Add message on DMA usage
@ 2024-08-28 6:37 Alexander Dahl
2024-09-06 15:02 ` Miquel Raynal
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl @ 2024-08-28 6:37 UTC (permalink / raw)
To: linux-mtd
Cc: Nicolas Ferre, Miquel Raynal, Richard Weinberger,
Vignesh Raghavendra, Alexandre Belloni, Claudiu Beznea,
Kees Cook, Gustavo A. R. Silva,
moderated list:ARM/Microchip (AT91) SoC support, open list
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>
---
Notes:
v3:
- adapted commit message prefix
- collected tags
v2:
- make info message conditional (thanks Miquel)
- Link: https://lore.kernel.org/linux-mtd/20240821142006.645306-1-ada@thorsis.com/
v1:
- Link: https://lore.kernel.org/linux-mtd/20240821120517.330868-1-ada@thorsis.com/
drivers/mtd/nand/raw/atmel/nand-controller.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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");
}
base-commit: 47ac09b91befbb6a235ab620c32af719f8208399
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v3] mtd: rawnand: atmel: Add message on DMA usage
2024-08-28 6:37 [PATCH v3] mtd: rawnand: atmel: Add message on DMA usage Alexander Dahl
@ 2024-09-06 15:02 ` Miquel Raynal
0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2024-09-06 15:02 UTC (permalink / raw)
To: Alexander Dahl, linux-mtd
Cc: Miquel Raynal, Nicolas Ferre, Richard Weinberger,
Vignesh Raghavendra, Alexandre Belloni, Claudiu Beznea,
Kees Cook, Gustavo A. R. Silva,
moderated list:ARM/Microchip (AT91) SoC support, open list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-06 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-28 6:37 [PATCH v3] mtd: rawnand: atmel: Add message on DMA usage Alexander Dahl
2024-09-06 15:02 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®