LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: fsl_mqs: Minor driver cleanups
@ 2026-11-30  1:54 Chancel Liu
  2026-11-30  1:54 ` [PATCH 1/2] ASoC: fsl_mqs: Remove unnecessary semicolons Chancel Liu
  2026-11-30  1:54 ` [PATCH 2/2] ASoC: fsl_mqs: Disable runtime PM on probe failure Chancel Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Chancel Liu @ 2026-11-30  1:54 UTC (permalink / raw)
  To: Shengjiu Wang, Xiubo Li, Fabio Estevam, Nicolin Chen,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linuxppc-dev, linux-kernel, Chancel Liu

Clean up minor issues in the fsl_mqs driver. Remove unnecessary
semicolons after function definitions and disable runtime PM if
component registration fails.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
---
Chancel Liu (2):
      ASoC: fsl_mqs: Remove unnecessary semicolons
      ASoC: fsl_mqs: Disable runtime PM on probe failure

 sound/soc/fsl/fsl_mqs.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
base-commit: 626d2233d48884f22c16011a6e44f905824bd8e0
change-id: 20261130-for-next-95ba2dc0b34a

Best regards,
-- 
Chancel Liu <chancel.liu@nxp.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] ASoC: fsl_mqs: Remove unnecessary semicolons
  2026-11-30  1:54 [PATCH 0/2] ASoC: fsl_mqs: Minor driver cleanups Chancel Liu
@ 2026-11-30  1:54 ` Chancel Liu
  2026-11-30  1:54 ` [PATCH 2/2] ASoC: fsl_mqs: Disable runtime PM on probe failure Chancel Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Chancel Liu @ 2026-11-30  1:54 UTC (permalink / raw)
  To: Shengjiu Wang, Xiubo Li, Fabio Estevam, Nicolin Chen,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linuxppc-dev, linux-kernel, Chancel Liu

From: Chancel Liu <chancel.liu@nxp.com>

Remove unnecessary semicolons after the fsl_mqs_sm_read() and
fsl_mqs_sm_write() function definitions.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
---
 sound/soc/fsl/fsl_mqs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/fsl/fsl_mqs.c b/sound/soc/fsl/fsl_mqs.c
index fd4a5f4a56be..ce12cc79b9c4 100644
--- a/sound/soc/fsl/fsl_mqs.c
+++ b/sound/soc/fsl/fsl_mqs.c
@@ -87,7 +87,7 @@ static int fsl_mqs_sm_read(void *context, unsigned int reg, unsigned int *val)
 		return scmi_imx_misc_ctrl_get(mqs_priv->soc->sm_index, &num, val);
 
 	return -EINVAL;
-};
+}
 
 static int fsl_mqs_sm_write(void *context, unsigned int reg, unsigned int val)
 {
@@ -98,7 +98,7 @@ static int fsl_mqs_sm_write(void *context, unsigned int reg, unsigned int val)
 		return scmi_imx_misc_ctrl_set(mqs_priv->soc->sm_index, val);
 
 	return -EINVAL;
-};
+}
 
 static int fsl_mqs_hw_params(struct snd_pcm_substream *substream,
 			     struct snd_pcm_hw_params *params,

-- 
2.50.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ASoC: fsl_mqs: Disable runtime PM on probe failure
  2026-11-30  1:54 [PATCH 0/2] ASoC: fsl_mqs: Minor driver cleanups Chancel Liu
  2026-11-30  1:54 ` [PATCH 1/2] ASoC: fsl_mqs: Remove unnecessary semicolons Chancel Liu
@ 2026-11-30  1:54 ` Chancel Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Chancel Liu @ 2026-11-30  1:54 UTC (permalink / raw)
  To: Shengjiu Wang, Xiubo Li, Fabio Estevam, Nicolin Chen,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linuxppc-dev, linux-kernel, Chancel Liu

From: Chancel Liu <chancel.liu@nxp.com>

Disable runtime PM if the ASoC component registration fails to keep the
probe error path balanced.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
---
 sound/soc/fsl/fsl_mqs.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_mqs.c b/sound/soc/fsl/fsl_mqs.c
index ce12cc79b9c4..b171120952aa 100644
--- a/sound/soc/fsl/fsl_mqs.c
+++ b/sound/soc/fsl/fsl_mqs.c
@@ -312,9 +312,14 @@ static int fsl_mqs_probe(struct platform_device *pdev)
 	ret = devm_snd_soc_register_component(&pdev->dev, &soc_codec_fsl_mqs,
 			&fsl_mqs_dai, 1);
 	if (ret)
-		return ret;
+		goto err_pm_disable;
 
 	return 0;
+
+err_pm_disable:
+	pm_runtime_disable(&pdev->dev);
+
+	return ret;
 }
 
 static void fsl_mqs_remove(struct platform_device *pdev)

-- 
2.50.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-30  1:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  1:54 [PATCH 0/2] ASoC: fsl_mqs: Minor driver cleanups Chancel Liu
2026-11-30  1:54 ` [PATCH 1/2] ASoC: fsl_mqs: Remove unnecessary semicolons Chancel Liu
2026-11-30  1:54 ` [PATCH 2/2] ASoC: fsl_mqs: Disable runtime PM on probe failure Chancel Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox