diff mbox series

[1/2] ASoC: codecs: wsa883x: Shutdown on error path

Message ID 20221109163759.1158837-1-krzysztof.kozlowski@linaro.org
State Accepted
Commit 8e022387444bc5039a271fbf5a778551c4a1926b
Headers show
Series [1/2] ASoC: codecs: wsa883x: Shutdown on error path | expand

Commit Message

Krzysztof Kozlowski Nov. 9, 2022, 4:37 p.m. UTC
If probe fails, toggle shutdown via GPIO to save power and reverse
probe actions.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 sound/soc/codecs/wsa883x.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown Nov. 17, 2022, 11:48 a.m. UTC | #1
On Wed, 9 Nov 2022 17:37:58 +0100, Krzysztof Kozlowski wrote:
> If probe fails, toggle shutdown via GPIO to save power and reverse
> probe actions.
> 
> 

Applied to

   broonie/sound.git for-next

Thanks!

[1/2] ASoC: codecs: wsa883x: Shutdown on error path
      commit: 8e022387444bc5039a271fbf5a778551c4a1926b
[2/2] ASoC: codecs: wsa883x: Simplify with dev_err_probe
      commit: 6b6ab406cedaf70f58961d4ea82e88e65e721d06

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
diff mbox series

Patch

diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c
index 77a7dd3cf495..4ad8b875eb8f 100644
--- a/sound/soc/codecs/wsa883x.c
+++ b/sound/soc/codecs/wsa883x.c
@@ -1415,6 +1415,7 @@  static int wsa883x_probe(struct sdw_slave *pdev,
 
 	wsa883x->regmap = devm_regmap_init_sdw(pdev, &wsa883x_regmap_config);
 	if (IS_ERR(wsa883x->regmap)) {
+		gpiod_direction_output(wsa883x->sd_n, 1);
 		dev_err(&pdev->dev, "regmap_init failed\n");
 		ret = PTR_ERR(wsa883x->regmap);
 		goto err;