summaryrefslogtreecommitdiff
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2020-03-06 16:28:39 +0200
committerVinod Koul <vkoul@kernel.org>2020-03-11 14:56:14 +0530
commit26cf132de6f79c06025706ddc61e045d591d404d (patch)
tree2e14e92b1976b951480ba3f095ffe972b577d46d /include/linux/dmaengine.h
parentdb8d9b4c9b303ede7e5b0d828ec8f7ae0d26d7ef (diff)
downloadlwn-26cf132de6f79c06025706ddc61e045d591d404d.tar.gz
lwn-26cf132de6f79c06025706ddc61e045d591d404d.zip
dmaengine: Create debug directories for DMA devices
Create a placeholder directory for each registered DMA device. DMA drivers can use the dmaengine_get_debugfs_root() call to get their debugfs root and can populate with custom files to aim debugging. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/20200306142839.17910-4-peter.ujfalusi@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r--include/linux/dmaengine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 72920b5cf2d7..21065c04c4ac 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -902,6 +902,7 @@ struct dma_device {
/* debugfs support */
#ifdef CONFIG_DEBUG_FS
void (*dbg_summary_show)(struct seq_file *s, struct dma_device *dev);
+ struct dentry *dbg_dev_root;
#endif
};