* [PATCH] dmaengine: pl330: Move device specific debugfs file to its directory
@ 2026-07-25 19:43 Vladimir Zapolskiy
2026-08-14 20:43 ` Frank Li
2026-09-03 17:04 ` Vinod Koul
0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Zapolskiy @ 2026-07-25 19:43 UTC (permalink / raw)
To: Vinod Koul; +Cc: Frank Li, dmaengine
Under DMA framework every DMA device gets its dedicated directory
dmaengine/$device_name in debugfs to store any supplementary data
accessible from userspace. This change moves a single registered
debugfs file of each PL330 device from debugfs top directory to the
device specific directory, the file is renamed to "stats" to match
the most popular name among all DMA device debugfs files.
The S_IFREG mask is dropped as excessive for debugfs_create_file()
function.
Signed-off-by: Vladimir Zapolskiy <vz@kernel.org>
---
drivers/dma/pl330.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 25ba84b18704..9736eb24e5ac 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2952,8 +2952,7 @@ DEFINE_SHOW_ATTRIBUTE(pl330_debugfs);
static inline void init_pl330_debugfs(struct pl330_dmac *pl330)
{
- debugfs_create_file(dev_name(pl330->ddma.dev),
- S_IFREG | 0444, NULL, pl330,
+ debugfs_create_file("stats", 0444, pl330->ddma.dbg_dev_root, pl330,
&pl330_debugfs_fops);
}
#else
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] dmaengine: pl330: Move device specific debugfs file to its directory
2026-07-25 19:43 [PATCH] dmaengine: pl330: Move device specific debugfs file to its directory Vladimir Zapolskiy
@ 2026-08-14 20:43 ` Frank Li
2026-09-03 17:04 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2026-08-14 20:43 UTC (permalink / raw)
To: Vladimir Zapolskiy; +Cc: Vinod Koul, Frank Li, dmaengine
On Sat, Jul 25, 2026 at 10:43:43PM +0300, Vladimir Zapolskiy wrote:
> Under DMA framework every DMA device gets its dedicated directory
> dmaengine/$device_name in debugfs to store any supplementary data
> accessible from userspace. This change moves a single registered
> debugfs file of each PL330 device from debugfs top directory to the
> device specific directory, the file is renamed to "stats" to match
> the most popular name among all DMA device debugfs files.
>
> The S_IFREG mask is dropped as excessive for debugfs_create_file()
> function.
>
> Signed-off-by: Vladimir Zapolskiy <vz@kernel.org>
> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> drivers/dma/pl330.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
> index 25ba84b18704..9736eb24e5ac 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -2952,8 +2952,7 @@ DEFINE_SHOW_ATTRIBUTE(pl330_debugfs);
>
> static inline void init_pl330_debugfs(struct pl330_dmac *pl330)
> {
> - debugfs_create_file(dev_name(pl330->ddma.dev),
> - S_IFREG | 0444, NULL, pl330,
> + debugfs_create_file("stats", 0444, pl330->ddma.dbg_dev_root, pl330,
> &pl330_debugfs_fops);
> }
> #else
> --
> 2.51.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] dmaengine: pl330: Move device specific debugfs file to its directory
2026-07-25 19:43 [PATCH] dmaengine: pl330: Move device specific debugfs file to its directory Vladimir Zapolskiy
2026-08-14 20:43 ` Frank Li
@ 2026-09-03 17:04 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2026-09-03 17:04 UTC (permalink / raw)
To: Vladimir Zapolskiy; +Cc: Frank Li, dmaengine
On Sat, 25 Jul 2026 22:43:43 +0300, Vladimir Zapolskiy wrote:
> Under DMA framework every DMA device gets its dedicated directory
> dmaengine/$device_name in debugfs to store any supplementary data
> accessible from userspace. This change moves a single registered
> debugfs file of each PL330 device from debugfs top directory to the
> device specific directory, the file is renamed to "stats" to match
> the most popular name among all DMA device debugfs files.
>
> [...]
Applied, thanks!
[1/1] dmaengine: pl330: Move device specific debugfs file to its directory
commit: d2d5b3dbd97e50261c1ad6a5f0eb09963f421848
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-03 17:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-25 19:43 [PATCH] dmaengine: pl330: Move device specific debugfs file to its directory Vladimir Zapolskiy
2026-08-14 20:43 ` Frank Li
2026-09-03 17:04 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox