ASoC: wm8524: Do not print probe defer error
Subsystems (3)
PATCH 1/1 ASoC: wm8524: Do not print probe defer error
On an imx8mq-evk the following error is seen:
[ 1.375809] wm8524-codec audio-codec: Failed to get mute line: -517
It happens because the codec driver may probe prior to the imx gpio driver, which causes a probe defer.
Change to dev_err_probe() to avoid printing this error.
--- sound/soc/codecs/wm8524.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8524.c +1 -1
@@ -227,7 +227,7 @@ static int wm8524_codec_probe(struct platform_device *pdev) wm8524->mute =devm_gpiod_get (&pdev->dev,"wlf,mute" ,GPIOD_OUT_LOW );if (IS_ERR (wm8524->mute)) { ret =PTR_ERR (wm8524->mute); -dev_err (&pdev->dev,"Failed to get mute line: %d\n" , ret); +dev_err_probe (&pdev->dev, ret,"Failed to get mute line\n" );return ret; }
Signature · 1 line
2.25.1
Quoted 4 lines · Fabio Estevam
On an imx8mq-evk the following error is seen:
[ 1.375809] wm8524-codec audio-codec: Failed to get mute line: -517
Quoted 8 lines
It happens because the codec driver may probe prior to the imx gpio driver, which causes a probe defer.
Change to
dev_err_probe()to avoid printing this error.Reported-by Chris Healy <[email protected]>Signed-off-by Fabio Estevam <[email protected]>---
Thanks,
Charles
Mark Brown
maintainerQuoted 8 lines · Fabio Estevam
On an imx8mq-evk the following error is seen:
[ 1.375809] wm8524-codec audio-codec: Failed to get mute line: -517It happens because the codec driver may probe prior to the imx gpio driver, which causes a probe defer.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: wm8524: Do not print probe defer error
commit: 59dffc7769d720aab10b8c70acfcf1dea4a493f3
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