Re: [PATCH] dmaengine: add a new helper dmam_async_device_register

From: Huang Shijie
Date: Wed Jul 25 2018 - 21:21:23 EST


Hi Vinod,


在 2018年07月25日 20:38, Vinod 写道:
On 25-07-18, 13:46, Huang Shijie wrote:
This patch adds the dmam_async_device_register for DMA code.
Use the Devres to call the release for the DMA engine driver.
no users?
I can add some new users if you want.
I will add an extra patch for it.


Signed-off-by: Huang Shijie <sjhuang@xxxxxxxxxxx>
---
Documentation/driver-model/devres.txt | 1 +
drivers/dma/dmaengine.c | 35 +++++++++++++++++++++++++++
include/linux/dmaengine.h | 1 +
3 files changed, 37 insertions(+)

diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index a3e8bceb5f19..26c6de621446 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -240,6 +240,7 @@ CLOCK
devm_of_clk_add_hw_provider()
DMA
+ dmam_async_device_register()
can we name it dmaengine_async_device_register, not to confuse with dma APIs
ok.
If no one objects the dmaengine_async_device_register().
I will use it in the next version.

Thanks
Huang Shijie