]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: iris: Fix opp scaling of power domains
authorAkhil P Oommen <akhilpo@oss.qualcomm.com>
Wed, 11 Jun 2025 05:43:44 +0000 (11:13 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 3 Jul 2025 09:02:44 +0000 (11:02 +0200)
Pass PD_FLAG_REQUIRED_OPP flag to allow opp framework to scale the rpmpd
power domains.

Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/qcom/iris/iris_probe.c

index 9a7ce142f7007ffcda0bd422c1983f2374bb0d92..4e6e92357968d7419f114cc0ffa9b571bad19e46 100644 (file)
@@ -53,7 +53,7 @@ static int iris_init_power_domains(struct iris_core *core)
        struct dev_pm_domain_attach_data iris_opp_pd_data = {
                .pd_names = core->iris_platform_data->opp_pd_tbl,
                .num_pd_names = core->iris_platform_data->opp_pd_tbl_size,
-               .pd_flags = PD_FLAG_DEV_LINK_ON,
+               .pd_flags = PD_FLAG_DEV_LINK_ON | PD_FLAG_REQUIRED_OPP,
        };
 
        ret = devm_pm_domain_attach_list(core->dev, &iris_pd_data, &core->pmdomain_tbl);