dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] dmaengine: dw-axi-dmac: PM cleanup and reset control support
@ 2025-10-13 15:02 Artem Shimko
  2025-10-13 15:02 ` [PATCH v2 1/2] dmaengine: dw-axi-dmac: simplify PM functions and use modern macros Artem Shimko
  2025-10-13 15:02 ` [PATCH v2 2/2] dmaengine: dw-axi-dmac: add reset control support Artem Shimko
  0 siblings, 2 replies; 3+ messages in thread
From: Artem Shimko @ 2025-10-13 15:02 UTC (permalink / raw)
  To: Vinod Koul, Philipp Zabel
  Cc: Artem Shimko, linux-kernel, dmaengine, Eugeniy Paltsev

This patch series improves the dw-axi-dmac driver in two areas:

Patch 1 simplifies the power management code by using modern kernel
macros and removing redundant wrapper functions, making the code more
maintainable and aligned with current kernel practices.

Patch 2 adds proper reset control support to ensure reliable
initialization and power management, handling resets during probe,
remove, and suspend/resume operations.

ChangeLog:
  v1:
    * https://lore.kernel.org/all/20251012100002.2959213-1-a.shimko.dev@gmail.com/T/#t
  v2:
    * Remove has_resets flag and use reset_control_assert/deassert() unconditionally,
    as these functions handle NULL pointers internally
    * Replace devm_reset_control_array_get_exclusive() with
    devm_reset_control_array_get_optional_exclusive() to handle platforms
    without reset controls gracefully
    * Simplify error handling by removing redundant flag checks
    * Remove has_resets field from struct axi_dma_chip as it's no longer needed

Artem Shimko (2):
  dmaengine: dw-axi-dmac: simplify PM functions and use modern macros
  dmaengine: dw-axi-dmac: add reset control support

 .../dma/dw-axi-dmac/dw-axi-dmac-platform.c    | 66 ++++++++-----------
 drivers/dma/dw-axi-dmac/dw-axi-dmac.h         |  1 +
 2 files changed, 30 insertions(+), 37 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-10-13 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 15:02 [PATCH v2 0/2] dmaengine: dw-axi-dmac: PM cleanup and reset control support Artem Shimko
2025-10-13 15:02 ` [PATCH v2 1/2] dmaengine: dw-axi-dmac: simplify PM functions and use modern macros Artem Shimko
2025-10-13 15:02 ` [PATCH v2 2/2] dmaengine: dw-axi-dmac: add reset control support Artem Shimko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).