]> www.infradead.org Git - users/dwmw2/linux.git/commit
dmaengine: add channel device name to channel registration
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 31 May 2024 15:07:10 +0000 (17:07 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 Jun 2024 18:25:34 +0000 (23:55 +0530)
commit10b8e0fd3f7234a38db2c8d2c8dec0bd6eeede44
tree96b498417be2f0ce25c1a1030b0ba20da2115713
parent2088473802ab9641114681bee92ba902bccdc19b
dmaengine: add channel device name to channel registration

Channel device name is used for sysfs, but also by dmatest filter function.

With dynamic channel registration, channels can be registered after dma
controller registration. Users may want to have specific channel names.

If name is NULL, the channel name relies on previous implementation,
dma<controller_device_id>chan<channel_device_id>.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20240531150712.2503554-11-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c
drivers/dma/idxd/dma.c
include/linux/dmaengine.h