linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 07/11] ASoC: fsl: fsl_sai: use pm_runtime_resume_and_get()
       [not found] <20220616220427.136036-1-pierre-louis.bossart@linux.intel.com>
@ 2022-06-16 22:04 ` Pierre-Louis Bossart
  0 siblings, 0 replies; only message in thread
From: Pierre-Louis Bossart @ 2022-06-16 22:04 UTC (permalink / raw)
  To: alsa-devel
  Cc: Cezary Rojewski, Liam Girdwood, Kai Vehmanen, Xiubo Li, tiwai,
	Shengjiu Wang, Takashi Iwai, Pierre-Louis Bossart,
	Ranjani Sridharan, Nicolin Chen,
	open list:FREESCALE SOC SOUND DRIVERS, broonie, Fabio Estevam,
	Amadeusz Sławiński, Jaroslav Kysela, Bard Liao,
	open list

Simplify the flow.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
---
 sound/soc/fsl/fsl_sai.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 4f5bd9597c746..b6407d4d3e09d 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -1141,11 +1141,9 @@ static int fsl_sai_probe(struct platform_device *pdev)
 			goto err_pm_disable;
 	}
 
-	ret = pm_runtime_get_sync(dev);
-	if (ret < 0) {
-		pm_runtime_put_noidle(dev);
+	ret = pm_runtime_resume_and_get(dev);
+	if (ret < 0)
 		goto err_pm_get_sync;
-	}
 
 	/* Get sai version */
 	ret = fsl_sai_check_version(dev);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-16 22:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220616220427.136036-1-pierre-louis.bossart@linux.intel.com>
2022-06-16 22:04 ` [PATCH 07/11] ASoC: fsl: fsl_sai: use pm_runtime_resume_and_get() Pierre-Louis Bossart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).