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:

committed by
Gerrit - the friendly Code Review server

parent
d5de97eac9
commit
e76174a384
@@ -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);
|
||||
|
Reference in New Issue
Block a user