]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
OPP: Rework _set_required_devs() to manage a single device per call
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 Oct 2024 12:22:24 +0000 (14:22 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 10 Oct 2024 12:11:41 +0000 (14:11 +0200)
commit0e8158b4a82eb5bfb69df17510d210b073896f00
treec09a7e5c782c2d9190ac38c1217c078c59a8e677
parenta821b48783c72b2402220434080583856c21c523
OPP: Rework _set_required_devs() to manage a single device per call

At this point there are no consumer drivers that makes use of
_set_required_devs(), hence it should be straightforward to rework the code
to enable it to better integrate with the PM domain attach procedure.

During attach, one device at the time is being hooked up to its
corresponding PM domain. Therefore, let's update the _set_required_devs()
to align to this behaviour, allowing callers to fill out one required_dev
per call. Subsequent changes starts making use of this.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20241002122232.194245-4-ulf.hansson@linaro.org
drivers/opp/core.c
drivers/opp/opp.h
include/linux/pm_opp.h