remoteproc: qcom: explicitly request exclusive reset control
authorPhilipp Zabel <[email protected]>
Wed, 19 Jul 2017 15:26:16 +0000 (17:26 +0200)
committerBjorn Andersson <[email protected]>
Mon, 28 Aug 2017 06:18:35 +0000 (23:18 -0700)
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: Ohad Ben-Cohen <[email protected]>
Cc: Bjorn Andersson <[email protected]>
Cc: [email protected]
Signed-off-by: Philipp Zabel <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
drivers/remoteproc/qcom_q6v5_pil.c

index fc3ef1e81433975daaeb8609a8b10911334d270d..2d3d5ac92c060260a35bfe8dd45c4809289ce77f 100644 (file)
@@ -868,7 +868,8 @@ static int q6v5_init_clocks(struct device *dev, struct clk **clks,
 
 static int q6v5_init_reset(struct q6v5 *qproc)
 {
-       qproc->mss_restart = devm_reset_control_get(qproc->dev, NULL);
+       qproc->mss_restart = devm_reset_control_get_exclusive(qproc->dev,
+                                                             NULL);
        if (IS_ERR(qproc->mss_restart)) {
                dev_err(qproc->dev, "failed to acquire mss restart\n");
                return PTR_ERR(qproc->mss_restart);