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

Commit 7bd345c9 authored by Mengdong Lin's avatar Mengdong Lin Committed by Mark Brown
Browse files

ASoC: Intel: set initial runtime PM status to active for ACPI-enumerated ADSP



The ADSP on Braswell/Baytrail is an ACPI device. This patch sets its initial
runtime PM status to active. Otherwise, its initial status is suspended and
runtime_suspend ops will not be called after probe and thus cannot further
trigger ACPI _PS3 (D3) method to put the device into low power D3cold state.

Signed-off-by: default avatarMengdong Lin <mengdong.lin@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bfa76d49
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -379,6 +379,10 @@ void sst_configure_runtime_pm(struct intel_sst_drv *ctx)
	 * initially active. So change the state to active before
	 * initially active. So change the state to active before
	 * enabling the pm
	 * enabling the pm
	 */
	 */

	if (!acpi_disabled)
		pm_runtime_set_active(ctx->dev);

	pm_runtime_enable(ctx->dev);
	pm_runtime_enable(ctx->dev);


	if (acpi_disabled)
	if (acpi_disabled)