phy: cadence: Sierra: Explicitly request exclusive reset control
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 19 Mar 2021 12:41:22 +0000 (18:11 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 31 Mar 2021 11:13:20 +0000 (16:43 +0530)
No functional change. Since the reset controls obtained in
Sierra is exclusively used by the Sierra device, use
exclusive reset control request API calls.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20210319124128.13308-8-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-sierra.c

index 935f165..44c52a0 100644 (file)
@@ -514,14 +514,14 @@ static int cdns_sierra_phy_get_resets(struct cdns_sierra_phy *sp,
 {
        struct reset_control *rst;
 
-       rst = devm_reset_control_get(dev, "sierra_reset");
+       rst = devm_reset_control_get_exclusive(dev, "sierra_reset");
        if (IS_ERR(rst)) {
                dev_err(dev, "failed to get reset\n");
                return PTR_ERR(rst);
        }
        sp->phy_rst = rst;
 
-       rst = devm_reset_control_get_optional(dev, "sierra_apb");
+       rst = devm_reset_control_get_optional_exclusive(dev, "sierra_apb");
        if (IS_ERR(rst)) {
                dev_err(dev, "failed to get apb reset\n");
                return PTR_ERR(rst);