ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N
Subsystems (3)
PATCH 1/1 ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N
When CONFIG_PM=N, pm_runtime_put_sync() returns -ENOSYS which breaks the probe function of these drivers.
Other users of pm_runtime_put_sync() typically don't check the return value. In order to keep the program flow as intended, check for -ENOSYS.
This commit is similar to commit 0434d3f (omap-mailbox.c).
This commit fixes:
cab04ab (ASoC: fsl_asrc: Don't use devm_regmap_init_mmio_clk) 203773e (ASoC: fsl_esai: Don't use devm_regmap_init_mmio_clk) 2277e7e (ASoC: fsl_sai: Don't use devm_regmap_init_mmio_clk)
--- sound/soc/fsl/fsl_asrc.c | 2 +- sound/soc/fsl/fsl_esai.c | 2 +- sound/soc/fsl/fsl_sai.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/fsl/fsl_asrc.c +1 -1
@@ -1226,7 +1226,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) } ret =pm_runtime_put_sync (&pdev->dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync; ret = devm_snd_soc_register_component(&pdev->dev, &fsl_asrc_component,
sound/soc/fsl/fsl_esai.c +1 -1
@@ -1070,7 +1070,7 @@ static int fsl_esai_probe(struct platform_device *pdev)regmap_write (esai_priv->regmap,REG_ESAI_RSMB ,0 ); ret =pm_runtime_put_sync (&pdev->dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync;/*
sound/soc/fsl/fsl_sai.c +1 -1
@@ -1149,7 +1149,7 @@ static int fsl_sai_probe(struct platform_device *pdev) } ret =pm_runtime_put_sync (dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync;/*
Quoted 8 lines · Maarten Zanders
When
CONFIG_PM=N,pm_runtime_put_sync()returns-ENOSYSwhich breaks the probe function of these drivers.Other users of
pm_runtime_put_sync()typically don't check the return value. In order to keep the program flow as intended, check for-ENOSYS.
Quoted 8 lines
This commit is similar to commit 0434d3f (
omap-mailbox.c).This commit fixes:
cab04ab (ASoC:fsl_asrc: Don't usedevm_regmap_init_mmio_clk) 203773e (ASoC:fsl_esai: Don't usedevm_regmap_init_mmio_clk) 2277e7e (ASoC:fsl_sai: Don't usedevm_regmap_init_mmio_clk)Signed-off-by Maarten Zanders <[email protected]>
Mark Brown
maintainerQuoted 4 lines · Maarten Zanders
This commit fixes:
cab04ab (ASoC:fsl_asrc: Don't usedevm_regmap_init_mmio_clk) 203773e (ASoC:fsl_esai: Don't usedevm_regmap_init_mmio_clk) 2277e7e (ASoC:fsl_sai: Don't usedevm_regmap_init_mmio_clk)
Please use 12 character hashes for disambiguation.
PATCH v2 1/1 ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N
When CONFIG_PM=N, pm_runtime_put_sync() returns -ENOSYS which breaks the probe function of these drivers.
Other users of pm_runtime_put_sync() typically don't check the return value. In order to keep the program flow as intended, check for -ENOSYS.
This commit is similar to
commit 0434d3f4525a ("mailbox/omap: Handle if CONFIG_PM is disabled")
This commit fixes
commit cab04ab5900f ("ASoC: fsl_asrc: Don't use devm_regmap_init_mmio_clk") commit 203773e39347 ("ASoC: fsl_esai: Don't use devm_regmap_init_mmio_clk") commit 2277e7e36b4b ("ASoC: fsl_sai: Don't use devm_regmap_init_mmio_clk")
--- sound/soc/fsl/fsl_asrc.c | 2 +- sound/soc/fsl/fsl_esai.c | 2 +- sound/soc/fsl/fsl_sai.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/fsl/fsl_asrc.c +1 -1
@@ -1232,7 +1232,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) } ret =pm_runtime_put_sync (&pdev->dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync; ret = devm_snd_soc_register_component(&pdev->dev, &fsl_asrc_component,
sound/soc/fsl/fsl_esai.c +1 -1
@@ -1069,7 +1069,7 @@ static int fsl_esai_probe(struct platform_device *pdev)regmap_write (esai_priv->regmap,REG_ESAI_RSMB ,0 ); ret =pm_runtime_put_sync (&pdev->dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync;/*
sound/soc/fsl/fsl_sai.c +1 -1
@@ -1446,7 +1446,7 @@ static int fsl_sai_probe(struct platform_device *pdev) } ret =pm_runtime_put_sync (dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync;/*
Signature · 1 line
2.37.3
Mark Brown
maintainerQuoted 4 lines · Maarten Zanders
commit
203773e39347("ASoC:fsl_esai: Don't usedevm_regmap_init_mmio_clk") commit2277e7e36b4b("ASoC:fsl_sai: Don't usedevm_regmap_init_mmio_clk")Signed-off-by Maarten Zanders <[email protected]>
If people send tags like Reviewed-by please preserve them unless you make some change to the patch that would invalidate them, that saves people duplicating their effort checking patches when they haven't changed.
PATCH v3 1/1 ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N
When CONFIG_PM=N, pm_runtime_put_sync() returns -ENOSYS which breaks the probe function of these drivers.
Other users of pm_runtime_put_sync() typically don't check the return value. In order to keep the program flow as intended, check for -ENOSYS.
This commit is similar to
commit 0434d3f4525a ("mailbox/omap: Handle if CONFIG_PM is disabled")
This commit fixes
commit cab04ab5900f ("ASoC: fsl_asrc: Don't use devm_regmap_init_mmio_clk") commit 203773e39347 ("ASoC: fsl_esai: Don't use devm_regmap_init_mmio_clk") commit 2277e7e36b4b ("ASoC: fsl_sai: Don't use devm_regmap_init_mmio_clk")
--- sound/soc/fsl/fsl_asrc.c | 2 +- sound/soc/fsl/fsl_esai.c | 2 +- sound/soc/fsl/fsl_sai.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/fsl/fsl_asrc.c +1 -1
@@ -1232,7 +1232,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) } ret =pm_runtime_put_sync (&pdev->dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync; ret = devm_snd_soc_register_component(&pdev->dev, &fsl_asrc_component,
sound/soc/fsl/fsl_esai.c +1 -1
@@ -1069,7 +1069,7 @@ static int fsl_esai_probe(struct platform_device *pdev)regmap_write (esai_priv->regmap,REG_ESAI_RSMB ,0 ); ret =pm_runtime_put_sync (&pdev->dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync;/*
sound/soc/fsl/fsl_sai.c +1 -1
@@ -1446,7 +1446,7 @@ static int fsl_sai_probe(struct platform_device *pdev) } ret =pm_runtime_put_sync (dev); -if (ret <0 ) +if (ret <0 && ret != -ENOSYS ) goto err_pm_get_sync;/*
Signature · 1 line
2.37.3
Mark Brown
maintainerQuoted 8 lines · Maarten Zanders
When
CONFIG_PM=N,pm_runtime_put_sync()returns-ENOSYSwhich breaks the probe function of these drivers.Other users of
pm_runtime_put_sync()typically don't check the return value. In order to keep the program flow as intended, check for-ENOSYS.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: fsl_asrc fsl_esai fsl_sai: allow CONFIG_PM=N
commit: 6a564338a23cefcfc29c4a535b98402d13efdda6
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark