Commit 15b0b82d authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Vinod Koul

phy: cadence: Sierra: Explicitly request exclusive reset control

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: default avatarKishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20210319124128.13308-8-kishon@ti.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 1d5f40e0
...@@ -514,14 +514,14 @@ static int cdns_sierra_phy_get_resets(struct cdns_sierra_phy *sp, ...@@ -514,14 +514,14 @@ static int cdns_sierra_phy_get_resets(struct cdns_sierra_phy *sp,
{ {
struct reset_control *rst; 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)) { if (IS_ERR(rst)) {
dev_err(dev, "failed to get reset\n"); dev_err(dev, "failed to get reset\n");
return PTR_ERR(rst); return PTR_ERR(rst);
} }
sp->phy_rst = 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)) { if (IS_ERR(rst)) {
dev_err(dev, "failed to get apb reset\n"); dev_err(dev, "failed to get apb reset\n");
return PTR_ERR(rst); return PTR_ERR(rst);
......
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