[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240830094118.15458-1-liaoyuanhong@vivo.com>
Date: Fri, 30 Aug 2024 17:41:11 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: vkoul@...nel.org
Cc: dmaengine@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
imx@...ts.linux.dev,
Liao Yuanhong <liaoyuanhong@...o.com>
Subject: [PATCH v2 0/7] dmaengine:Use devm_clk_get_enabled() helpers
The devm_clk_get_enabled() helpers:
- call devm_clk_get()
- call clk_prepare_enable() and register what is needed in order to
call clk_disable_unprepare() when needed, as a managed resource.
This simplifies the code and avoids the calls to clk_disable_unprepare().
---
v2:remove inappropriate modifications, configure COMPILE_TEST for easy
testing, add devm_clk_getprepaed() for imx sdma device.
---
Liao Yuanhong (7):
dmaengine:Add COMPILE_TEST for easy testing
dmaengine:at_hdmac:Use devm_clk_get_enabled() helpers
dmaengine:dma-jz4780:Use devm_clk_get_enabled() helpers
dmaengine:imx-dma:Use devm_clk_get_enabled() helpers
dmaengine:imx-sdma:Use devm_clk_get_prepared() helpers
dmaengine:milbeaut-hdmac:Use devm_clk_get_enabled() helpers
dmaengine:uniphier-mdmac:Use devm_clk_get_enabled() helpers
drivers/dma/Kconfig | 6 ++--
drivers/dma/at_hdmac.c | 16 ++--------
drivers/dma/dma-jz4780.c | 18 ++++-------
drivers/dma/imx-dma.c | 59 ++++++++++++------------------------
drivers/dma/imx-sdma.c | 22 +++-----------
drivers/dma/milbeaut-hdmac.c | 20 ++++--------
drivers/dma/uniphier-mdmac.c | 20 ++++--------
7 files changed, 47 insertions(+), 114 deletions(-)
--
2.25.1
Powered by blists - more mailing lists