diff options
| author | Shivank Garg <shivankg@amd.com> | 2026-08-22 19:22:03 +0000 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-09-09 17:51:44 +0530 |
| commit | 424103642d009f5a7dc33300a49d5606d1bf4fb5 (patch) | |
| tree | 97391350a2b9dcf109a8226e51efc48fb5f4f3cf /tools/perf/scripts/python/bin | |
| parent | a7df136ec529ee49a789c5029bc37b98b0d4bedd (diff) | |
| download | linux-next-424103642d009f5a7dc33300a49d5606d1bf4fb5.tar.gz linux-next-424103642d009f5a7dc33300a49d5606d1bf4fb5.zip | |
dmaengine: add dma_device_get() helper
Add dma_device_get() helper to match dma_device_put() to make code
symmetric. It wraps open-coded kref_get_unless_zero() and asserts that
dma_list_mutex is held, matching its put counterpart.
No functional change intended.
Suggested-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Shivank Garg <shivankg@amd.com>
Link: https://patch.msgid.link/20260822-dmaengine-kref-fix-v5-1-d4a4ee47d927@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
