Unverified Commit 1c19601d authored by Srinivasa Rao Mandadapu's avatar Srinivasa Rao Mandadapu Committed by Mark Brown
Browse files

ASoC: codecs: Fix misplaced lpass_macro_pds_exit call



Update power domains exit function calling from runtime resume
to remove function which was wrongly placed and causing crash in
device suspend and resume.

Fixes: 9e3d83c5 ("ASoC: codecs: Add power domains support in digital macro codecs")
Signed-off-by: default avatarSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: default avatarVenkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: default avatarVenkata Prasad Potturu <quic_potturu@quicinc.com>
Link: https://lore.kernel.org/r/1647355531-4150-1-git-send-email-quic_srivasam@quicinc.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 455c5653
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1920,6 +1920,8 @@ static int tx_macro_remove(struct platform_device *pdev)
	clk_disable_unprepare(tx->npl);
	clk_disable_unprepare(tx->fsgen);

	lpass_macro_pds_exit(tx->pds);

	return 0;
}

@@ -1964,8 +1966,6 @@ static int __maybe_unused tx_macro_runtime_resume(struct device *dev)
	regcache_sync(tx->regmap);
	tx->reset_swr = true;

	lpass_macro_pds_exit(tx->pds);

	return 0;
err_fsgen:
	clk_disable_unprepare(tx->npl);
+2 −2
Original line number Diff line number Diff line
@@ -1503,6 +1503,8 @@ static int va_macro_remove(struct platform_device *pdev)
	clk_disable_unprepare(va->dcodec);
	clk_disable_unprepare(va->macro);

	lpass_macro_pds_exit(va->pds);

	return 0;
}

@@ -1532,8 +1534,6 @@ static int __maybe_unused va_macro_runtime_resume(struct device *dev)
	regcache_cache_only(va->regmap, false);
	regcache_sync(va->regmap);

	lpass_macro_pds_exit(va->pds);

	return 0;
}