* [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; 4+ 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] 4+ 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; 4+ 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] 4+ 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
2026-11-30 1:59 ` sashiko-bot
1 sibling, 1 reply; 4+ 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] 4+ messages in thread
* Re: [PATCH 2/2] ASoC: fsl_mqs: Disable runtime PM on probe failure
2026-11-30 1:54 ` [PATCH 2/2] ASoC: fsl_mqs: Disable runtime PM on probe failure Chancel Liu
@ 2026-11-30 1:59 ` sashiko-bot
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-30 1:59 UTC (permalink / raw)
To: Chancel Liu; +Cc: linux-sound
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: fsl_mqs: missing Fixes trailer for fsl_mqs_probe() runtime
PM fix
--
commit 8ea5d6a6828d3d2d318a9c8e3ee12ff0ddd9cbcb
Author: Chancel Liu <chancel.liu@nxp.com>
> ASoC: fsl_mqs: Disable runtime PM on probe failure
>
> 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>
[Severity: Low]
This fixes the missing pm_runtime_disable() cleanup on the probe error path
present since the driver was added. Should this include:
Fixes: 9e28f6532c61 ("ASoC: fsl_mqs: Add MQS component driver")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-for-next-v1-0-378732659693@nxp.com?part=2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-30 1:59 UTC | newest]
Thread overview: 4+ 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
2026-11-30 1:59 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox