mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] drivers: dma: change pm registration for dw-axi-dmac-platform's suspend
@ 2025-08-26 10:30 Artem Shimko
  2025-08-26 10:30 ` [PATCH 1/1] " Artem Shimko
  0 siblings, 1 reply; 2+ messages in thread
From: Artem Shimko @ 2025-08-26 10:30 UTC (permalink / raw)
  To: dmaengine; +Cc: Artem Shimko, linux-kernel, vkoul, eugeniy.paltsev

From: Artem Shimko <artyom.shimko@gmail.com>

The SET_RUNTIME_PM_OPS macro has been deprecated in favor of
DEFINE_RUNTIME_DEV_PM_OPS which provides equivalent functionality
while also supporting system suspend mode.

This change modernizes the power management implementation by:
1. Replacing SET_RUNTIME_PM_OPS with DEFINE_RUNTIME_DEV_PM_OPS
2. Removing wrapper runtime suspend/resume functions
3. Adding __maybe_unused attribute to PM functions
4. Converting direct chip access to device-based access in PM functions
5. Using pm_ptr() for PM ops pointer registration

The refactoring maintains all existing functionality while improving
code maintainability and following current kernel best practices.

Artem Shimko (1):
  drivers: dma: change pm registration for dw-axi-dmac-platform's
    suspend

 .../dma/dw-axi-dmac/dw-axi-dmac-platform.c    | 31 ++++++-------------
 1 file changed, 9 insertions(+), 22 deletions(-)

-- 
2.43.0

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

end of thread, other threads:[~2025-08-26 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-26 10:30 [PATCH 0/1] drivers: dma: change pm registration for dw-axi-dmac-platform's suspend Artem Shimko
2025-08-26 10:30 ` [PATCH 1/1] " Artem Shimko

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

all inboxes | Powered by JetHome®