Message ID | 1600305963-7659-1-git-send-email-mansur@codeaurora.org |
---|---|
Headers | show |
Series | Venus - change clk enable, disable order and change bw values | expand |
Quoting Mansur Alisha Shaik (2020-09-16 18:26:01) > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c > index 52a3886..064b6c8 100644 > --- a/drivers/media/platform/qcom/venus/core.c > +++ b/drivers/media/platform/qcom/venus/core.c > @@ -363,8 +363,16 @@ static __maybe_unused int venus_runtime_suspend(struct device *dev) > > ret = icc_set_bw(core->cpucfg_path, 0, 0); > if (ret) > - return ret; > + goto err_poweron_core; > + > + ret = icc_set_bw(core->video_path, 0, 0); > + if (ret) > + goto err_poweron_core; > + > + return ret; > > +err_poweron_core: > + pm_ops->core_power(dev, POWER_ON); Don't we need to put back the bandwidth from before suspend was entered if the video_path fails? > return ret; > } >
Quoting Mansur Alisha Shaik (2020-09-16 18:26:00) > Currently video driver is voting after clk enable and un voting > before clk disable. Basically we should vote before clk enable > and un vote after clk disable. > > Corrected this by changing the order of clk enable and clk disable. > > Fixes: 7482a983d ("media: venus: redesign clocks and pm domains control") > Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org> > --- Reviewed-by: Stephen Boyd <swboyd@chromium.org>