aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2017-07-19 11:26:43 -0400
committerMark Brown <broonie@kernel.org>2017-07-19 12:07:25 -0400
commit72bfa2117bdb4bb5b07dd5ed833ff3c318fc70b6 (patch)
treedc82659132e713345c275e392393a1e45a2404e0
parentfe49cd980fc15cbb7eeb8d1a4ef45a14b807b55d (diff)
ASoC: sun4i: explicitly request exclusive reset control
Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting reset lines") started to transition the reset control request API calls to explicitly state whether the driver needs exclusive or shared reset control behavior. Convert all drivers requesting exclusive resets to the explicit API call so the temporary transition helpers can be removed. No functional changes. Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Mark Brown <broonie@kernel.org> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Chen-Yu Tsai <wens@csie.org> Cc: alsa-devel@alsa-project.org Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/sunxi/sun4i-codec.c3
-rw-r--r--sound/soc/sunxi/sun4i-i2s.c2
-rw-r--r--sound/soc/sunxi/sun4i-spdif.c3
3 files changed, 5 insertions, 3 deletions
diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c
index 4c37231f254b..73d054f466c2 100644
--- a/sound/soc/sunxi/sun4i-codec.c
+++ b/sound/soc/sunxi/sun4i-codec.c
@@ -1573,7 +1573,8 @@ static int sun4i_codec_probe(struct platform_device *pdev)
1573 } 1573 }
1574 1574
1575 if (quirks->has_reset) { 1575 if (quirks->has_reset) {
1576 scodec->rst = devm_reset_control_get(&pdev->dev, NULL); 1576 scodec->rst = devm_reset_control_get_exclusive(&pdev->dev,
1577 NULL);
1577 if (IS_ERR(scodec->rst)) { 1578 if (IS_ERR(scodec->rst)) {
1578 dev_err(&pdev->dev, "Failed to get reset control\n"); 1579 dev_err(&pdev->dev, "Failed to get reset control\n");
1579 return PTR_ERR(scodec->rst); 1580 return PTR_ERR(scodec->rst);
diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c
index 3635bbc72cbc..62b307b0c846 100644
--- a/sound/soc/sunxi/sun4i-i2s.c
+++ b/sound/soc/sunxi/sun4i-i2s.c
@@ -716,7 +716,7 @@ static int sun4i_i2s_probe(struct platform_device *pdev)
716 } 716 }
717 717
718 if (quirks->has_reset) { 718 if (quirks->has_reset) {
719 i2s->rst = devm_reset_control_get(&pdev->dev, NULL); 719 i2s->rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
720 if (IS_ERR(i2s->rst)) { 720 if (IS_ERR(i2s->rst)) {
721 dev_err(&pdev->dev, "Failed to get reset control\n"); 721 dev_err(&pdev->dev, "Failed to get reset control\n");
722 return PTR_ERR(i2s->rst); 722 return PTR_ERR(i2s->rst);
diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c
index eaefd07a5ed0..c49f3757b686 100644
--- a/sound/soc/sunxi/sun4i-spdif.c
+++ b/sound/soc/sunxi/sun4i-spdif.c
@@ -520,7 +520,8 @@ static int sun4i_spdif_probe(struct platform_device *pdev)
520 platform_set_drvdata(pdev, host); 520 platform_set_drvdata(pdev, host);
521 521
522 if (quirks->has_reset) { 522 if (quirks->has_reset) {
523 host->rst = devm_reset_control_get_optional(&pdev->dev, NULL); 523 host->rst = devm_reset_control_get_optional_exclusive(&pdev->dev,
524 NULL);
524 if (IS_ERR(host->rst) && PTR_ERR(host->rst) == -EPROBE_DEFER) { 525 if (IS_ERR(host->rst) && PTR_ERR(host->rst) == -EPROBE_DEFER) {
525 ret = -EPROBE_DEFER; 526 ret = -EPROBE_DEFER;
526 dev_err(&pdev->dev, "Failed to get reset: %d\n", ret); 527 dev_err(&pdev->dev, "Failed to get reset: %d\n", ret);