* [PATCH] mtd: nand: raw: atmel: Add message on DMA usage
@ 2024-08-21 12:05 Alexander Dahl
2024-08-21 13:17 ` Miquel Raynal
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Dahl @ 2024-08-21 12:05 UTC (permalink / raw)
To: linux-mtd
Cc: Alexandre Belloni, Gustavo A. R. Silva, open list,
Vignesh Raghavendra, Kees Cook, Richard Weinberger,
Claudiu Beznea, Miquel Raynal,
moderated list:ARM/Microchip AT91 SoC support
Like for other atmel drivers (serial, crypto, mmc, …), too.
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
drivers/mtd/nand/raw/atmel/nand-controller.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c
index dc75d50d52e8..9e6dea2cf140 100644
--- a/drivers/mtd/nand/raw/atmel/nand-controller.c
+++ b/drivers/mtd/nand/raw/atmel/nand-controller.c
@@ -2051,6 +2051,8 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc,
nc->dmac = dma_request_channel(mask, NULL, NULL);
if (!nc->dmac)
dev_err(nc->dev, "Failed to request DMA channel\n");
+ dev_info(nc->dev, "using %s for DMA transfers\n",
+ dma_chan_name(nc->dmac));
}
/* We do not retrieve the SMC syscon when parsing old DTs. */
base-commit: 47ac09b91befbb6a235ab620c32af719f8208399
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mtd: nand: raw: atmel: Add message on DMA usage
2024-08-21 12:05 [PATCH] mtd: nand: raw: atmel: Add message on DMA usage Alexander Dahl
@ 2024-08-21 13:17 ` Miquel Raynal
2024-08-21 13:20 ` Alexander Dahl
0 siblings, 1 reply; 3+ messages in thread
From: Miquel Raynal @ 2024-08-21 13:17 UTC (permalink / raw)
To: Alexander Dahl
Cc: Alexandre Belloni, Gustavo A. R. Silva, open list,
Vignesh Raghavendra, Kees Cook, Richard Weinberger,
Claudiu Beznea, linux-mtd,
moderated list:ARM/Microchip AT91 SoC support
Hi Alexander,
ada@thorsis.com wrote on Wed, 21 Aug 2024 14:05:16 +0200:
> Like for other atmel drivers (serial, crypto, mmc, …), too.
>
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> ---
> drivers/mtd/nand/raw/atmel/nand-controller.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c
> index dc75d50d52e8..9e6dea2cf140 100644
> --- a/drivers/mtd/nand/raw/atmel/nand-controller.c
> +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c
> @@ -2051,6 +2051,8 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc,
> nc->dmac = dma_request_channel(mask, NULL, NULL);
> if (!nc->dmac)
> dev_err(nc->dev, "Failed to request DMA channel\n");
> + dev_info(nc->dev, "using %s for DMA transfers\n",
> + dma_chan_name(nc->dmac));
The message here would be misleading if !nc->dmac.
> }
>
> /* We do not retrieve the SMC syscon when parsing old DTs. */
>
> base-commit: 47ac09b91befbb6a235ab620c32af719f8208399
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mtd: nand: raw: atmel: Add message on DMA usage
2024-08-21 13:17 ` Miquel Raynal
@ 2024-08-21 13:20 ` Alexander Dahl
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Dahl @ 2024-08-21 13:20 UTC (permalink / raw)
To: Miquel Raynal
Cc: Alexandre Belloni, Gustavo A. R. Silva, open list,
Vignesh Raghavendra, Alexander Dahl, Richard Weinberger,
Claudiu Beznea, Kees Cook, linux-mtd,
moderated list:ARM/Microchip (AT91) SoC support
Hi Miquel,
Am Wed, Aug 21, 2024 at 03:17:01PM +0200 schrieb Miquel Raynal:
> Hi Alexander,
>
> ada@thorsis.com wrote on Wed, 21 Aug 2024 14:05:16 +0200:
>
> > Like for other atmel drivers (serial, crypto, mmc, …), too.
> >
> > Signed-off-by: Alexander Dahl <ada@thorsis.com>
> > ---
> > drivers/mtd/nand/raw/atmel/nand-controller.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c
> > index dc75d50d52e8..9e6dea2cf140 100644
> > --- a/drivers/mtd/nand/raw/atmel/nand-controller.c
> > +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c
> > @@ -2051,6 +2051,8 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc,
> > nc->dmac = dma_request_channel(mask, NULL, NULL);
> > if (!nc->dmac)
> > dev_err(nc->dev, "Failed to request DMA channel\n");
> > + dev_info(nc->dev, "using %s for DMA transfers\n",
> > + dma_chan_name(nc->dmac));
>
>
> The message here would be misleading if !nc->dmac.
Of course you're right, this is somewhat embarassing. I'll send a v2.
Thanks for reviewing.
Alex
>
> > }
> >
> > /* We do not retrieve the SMC syscon when parsing old DTs. */
> >
> > base-commit: 47ac09b91befbb6a235ab620c32af719f8208399
>
>
> Thanks,
> Miquèl
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-21 13:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 12:05 [PATCH] mtd: nand: raw: atmel: Add message on DMA usage Alexander Dahl
2024-08-21 13:17 ` Miquel Raynal
2024-08-21 13:20 ` Alexander Dahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox