mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] add device managed version of dev_pm_domain_attach|detach_list()
@ 2024-08-07  7:15 Dikshita Agarwal
  2024-08-07  7:15 ` [PATCH v2 1/2] PM: domains: " Dikshita Agarwal
  2024-08-07  7:15 ` [PATCH v2 2/2] media: venus: use device managed APIs for power domains Dikshita Agarwal
  0 siblings, 2 replies; 11+ messages in thread
From: Dikshita Agarwal @ 2024-08-07  7:15 UTC (permalink / raw)
  To: Rafael J. Wysocki, Pavel Machek, Len Brown, Greg Kroah-Hartman,
	Stanimir Varbanov, Vikash Garodia, Bjorn Andersson,
	Konrad Dybcio, Mauro Carvalho Chehab, Ulf Hansson
  Cc: Bryan O'Donoghue, linux-pm, linux-kernel, linux-media,
	linux-arm-msm, Dikshita Agarwal

These patches add the devres-enabled version of
dev_pm_domain_attach|detach_list in pm domain framework and
use the same APIs in venus driver.

If any client drivers use devm_pm_domain_attach_list() to
attach the PM domains, devm_pm_domain_detach_list() will be
invoked implicitly during remove phase.

Changes since v1:
 - fixed the warnings reported by kernel test robot.
 - added stub functions for !CONFIG_PM case.
 - removed un-necessasry type casting.
 - fixed the issue with remove sequence.

Dikshita Agarwal (2):
  PM: domains: add device managed version of
    dev_pm_domain_attach|detach_list()
  media: venus: use device managed APIs for power domains

 drivers/base/power/common.c                    | 44 ++++++++++++++++++++++++++
 drivers/media/platform/qcom/venus/pm_helpers.c |  5 +--
 include/linux/pm_domain.h                      | 13 ++++++++
 3 files changed, 58 insertions(+), 4 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2024-08-13 12:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-07  7:15 [PATCH v2 0/2] add device managed version of dev_pm_domain_attach|detach_list() Dikshita Agarwal
2024-08-07  7:15 ` [PATCH v2 1/2] PM: domains: " Dikshita Agarwal
2024-08-08 10:41   ` Dhruva Gole
2024-08-08 10:55     ` Dikshita Agarwal
2024-08-08 10:59       ` Dikshita Agarwal
2024-08-09  4:19         ` Dhruva Gole
2024-08-09  9:27           ` Dikshita Agarwal
2024-08-09  9:49             ` Dhruva Gole
2024-08-13 10:52   ` Ulf Hansson
2024-08-13 12:23     ` Dikshita Agarwal
2024-08-07  7:15 ` [PATCH v2 2/2] media: venus: use device managed APIs for power domains Dikshita Agarwal

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®