Commit afbd39a4 authored by Philipp Zabel's avatar Philipp Zabel Committed by Tejun Heo

ata: sata_gemini: explicitly request exclusive reset control

Commit a53e35db ("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: linux-ide@vger.kernel.org
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent cea9c8d3
...@@ -274,14 +274,14 @@ static int gemini_sata_bridge_init(struct sata_gemini *sg) ...@@ -274,14 +274,14 @@ static int gemini_sata_bridge_init(struct sata_gemini *sg)
return ret; return ret;
} }
sg->sata0_reset = devm_reset_control_get(dev, "sata0"); sg->sata0_reset = devm_reset_control_get_exclusive(dev, "sata0");
if (IS_ERR(sg->sata0_reset)) { if (IS_ERR(sg->sata0_reset)) {
dev_err(dev, "no SATA0 reset controller\n"); dev_err(dev, "no SATA0 reset controller\n");
clk_disable_unprepare(sg->sata1_pclk); clk_disable_unprepare(sg->sata1_pclk);
clk_disable_unprepare(sg->sata0_pclk); clk_disable_unprepare(sg->sata0_pclk);
return PTR_ERR(sg->sata0_reset); return PTR_ERR(sg->sata0_reset);
} }
sg->sata1_reset = devm_reset_control_get(dev, "sata1"); sg->sata1_reset = devm_reset_control_get_exclusive(dev, "sata1");
if (IS_ERR(sg->sata1_reset)) { if (IS_ERR(sg->sata1_reset)) {
dev_err(dev, "no SATA1 reset controller\n"); dev_err(dev, "no SATA1 reset controller\n");
clk_disable_unprepare(sg->sata1_pclk); clk_disable_unprepare(sg->sata1_pclk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment