Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d92d4107 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "va-macro: Add autosuspend after pm_runtime_get_sync"

parents cc808be9 8a89f8dd
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -727,14 +727,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);