mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
clk: qcom: lpasscc: Introduce pm autosuspend for SC7180
The LPASSCC driver's suspend/resume is invoked multiple number of times and thus allow the device to autosuspend for 500ms. Signed-off-by: Taniya Das <tdas@codeaurora.org> Link: https://lore.kernel.org/r/1605890417-721-1-git-send-email-tdas@codeaurora.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
043577518f
commit
ce8c195e65
1 changed files with 9 additions and 1 deletions
|
@ -370,7 +370,10 @@ static int lpass_create_pm_clks(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
pm_runtime_use_autosuspend(&pdev->dev);
|
||||||
|
pm_runtime_set_autosuspend_delay(&pdev->dev, 500);
|
||||||
pm_runtime_enable(&pdev->dev);
|
pm_runtime_enable(&pdev->dev);
|
||||||
|
|
||||||
ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
|
ret = devm_add_action_or_reset(&pdev->dev, lpass_pm_runtime_disable, &pdev->dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -423,7 +426,12 @@ static int lpass_core_cc_sc7180_probe(struct platform_device *pdev)
|
||||||
clk_fabia_pll_configure(&lpass_lpaaudio_dig_pll, regmap,
|
clk_fabia_pll_configure(&lpass_lpaaudio_dig_pll, regmap,
|
||||||
&lpass_lpaaudio_dig_pll_config);
|
&lpass_lpaaudio_dig_pll_config);
|
||||||
|
|
||||||
return qcom_cc_really_probe(pdev, &lpass_core_cc_sc7180_desc, regmap);
|
ret = qcom_cc_really_probe(pdev, &lpass_core_cc_sc7180_desc, regmap);
|
||||||
|
|
||||||
|
pm_runtime_mark_last_busy(&pdev->dev);
|
||||||
|
pm_runtime_put_autosuspend(&pdev->dev);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lpass_hm_core_probe(struct platform_device *pdev)
|
static int lpass_hm_core_probe(struct platform_device *pdev)
|
||||||
|
|
Loading…
Reference in a new issue