Browse Source

asoc: codecs: bolero: ignore children for pm suspend

Allow bolero macro's child  devices to pm enable
irrespective of state of their parents.

Change-Id: Ie615ea2db097760de75682b5881f71a37a735fa2
Signed-off-by: Karthikeyan Mani <[email protected]>
Karthikeyan Mani 5 years ago
parent
commit
3d209514a9
2 changed files with 2 additions and 0 deletions
  1. 1 0
      asoc/codecs/bolero/rx-macro.c
  2. 1 0
      asoc/codecs/bolero/wsa-macro.c

+ 1 - 0
asoc/codecs/bolero/rx-macro.c

@@ -3966,6 +3966,7 @@ static int rx_macro_probe(struct platform_device *pdev)
 	pm_runtime_set_autosuspend_delay(&pdev->dev, AUTO_SUSPEND_DELAY);
 	pm_runtime_use_autosuspend(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
+	pm_suspend_ignore_children(&pdev->dev, true);
 	pm_runtime_enable(&pdev->dev);
 
 	return 0;

+ 1 - 0
asoc/codecs/bolero/wsa-macro.c

@@ -3198,6 +3198,7 @@ static int wsa_macro_probe(struct platform_device *pdev)
 	pm_runtime_set_autosuspend_delay(&pdev->dev, AUTO_SUSPEND_DELAY);
 	pm_runtime_use_autosuspend(&pdev->dev);
 	pm_runtime_set_suspended(&pdev->dev);
+	pm_suspend_ignore_children(&pdev->dev, true);
 	pm_runtime_enable(&pdev->dev);
 
 	return ret;