]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: qcom_q6v5_adsp: Convert to dev_pm_domain_attach|detach_list()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Jan 2024 12:39:50 +0000 (13:39 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 Feb 2024 09:26:11 +0000 (10:26 +0100)
commitdb34c47d56d5ad91f61978c367d55069a81255e6
tree404b5062f399252b9c80cfb23a41c80837af43e2
parent3f6905fb2fdeaf5faaecfc6b80fe30c5a32b612b
remoteproc: qcom_q6v5_adsp: Convert to dev_pm_domain_attach|detach_list()

Let's avoid some of the boilerplate code to manage the various PM domain
cases, by converting into using dev_pm_domain_attach|detach_list().

As a part of the conversion, we are moving over to use device_links, which
simplifies the runtime PM support too. Moreover, while attaching let's
trust that an already attached single PM domain is the correct one.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: <linux-remoteproc@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20240130123951.236243-5-ulf.hansson@linaro.org
drivers/remoteproc/qcom_q6v5_adsp.c