public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] dmaengine:Use devm_clk_get_enabled() helpers
@ 2024-08-30  9:41 Liao Yuanhong
  2024-08-30  9:41 ` [PATCH v2 1/7] dmaengine:Add COMPILE_TEST for easy testing Liao Yuanhong
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Liao Yuanhong @ 2024-08-30  9:41 UTC (permalink / raw)
  To: vkoul; +Cc: dmaengine, linux-arm-kernel, linux-kernel, imx, Liao Yuanhong

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



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-09-03  5:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30  9:41 [PATCH v2 0/7] dmaengine:Use devm_clk_get_enabled() helpers Liao Yuanhong
2024-08-30  9:41 ` [PATCH v2 1/7] dmaengine:Add COMPILE_TEST for easy testing Liao Yuanhong
2024-08-30 17:44   ` Krzysztof Kozlowski
2024-08-31 13:15   ` kernel test robot
2024-08-31 21:31   ` kernel test robot
2024-08-30  9:41 ` [PATCH v2 2/7] dmaengine:at_hdmac:Use devm_clk_get_enabled() helpers Liao Yuanhong
2024-08-30 12:24   ` Nicolas Ferre
2024-08-30  9:41 ` [PATCH v2 3/7] dmaengine:dma-jz4780:Use " Liao Yuanhong
2024-08-30  9:41 ` [PATCH v2 4/7] dmaengine:imx-dma:Use " Liao Yuanhong
2024-08-30 15:12   ` Frank Li
2024-08-30  9:41 ` [PATCH v2 5/7] dmaengine:imx-sdma:Use devm_clk_get_prepared() helpers Liao Yuanhong
2024-08-30 15:11   ` Frank Li
2024-08-30  9:41 ` [PATCH v2 6/7] dmaengine:milbeaut-hdmac:Use devm_clk_get_enabled() helpers Liao Yuanhong
2024-08-30  9:41 ` [PATCH v2 7/7] dmaengine:uniphier-mdmac:Use " Liao Yuanhong
2024-08-30 18:11 ` [PATCH v2 0/7] dmaengine:Use " Krzysztof Kozlowski
2024-09-03  5:18   ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox