mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
va-macro: Add autosuspend after pm_runtime_get_sync
If va_macro_tx_va_mclk_enable returns error, va macro autosuspend will not be called. Add autosuspend before return. Change-Id: Iea3728fab2d240514ca4a7e02ef535edce977ee8 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
parent
d5de97eac9
commit
e76174a384
1 changed files with 8 additions and 2 deletions
|
|
@ -685,14 +685,20 @@ static int va_macro_swrm_clock(void *handle, bool enable)
|
|||
if (va_priv->va_swr_clk_cnt && !va_priv->tx_swr_clk_cnt) {
|
||||
ret = va_macro_tx_va_mclk_enable(va_priv, regmap,
|
||||
VA_MCLK, enable);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
pm_runtime_mark_last_busy(va_priv->dev);
|
||||
pm_runtime_put_autosuspend(va_priv->dev);
|
||||
goto done;
|
||||
}
|
||||
va_priv->va_clk_status++;
|
||||
} else {
|
||||
ret = va_macro_tx_va_mclk_enable(va_priv, regmap,
|
||||
TX_MCLK, enable);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
pm_runtime_mark_last_busy(va_priv->dev);
|
||||
pm_runtime_put_autosuspend(va_priv->dev);
|
||||
goto done;
|
||||
}
|
||||
va_priv->tx_clk_status++;
|
||||
}
|
||||
pm_runtime_mark_last_busy(va_priv->dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue