summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2019-12-16 10:57:06 +0100
committerKishon Vijay Abraham I <kishon@ti.com>2020-01-08 08:28:06 +0100
commitb872936f5757412ec11039ffe895e1b9249d6b68 (patch)
treec3fcb333539d6f4542d5db19e79f81a009dc0154 /drivers/phy
parentphy: cadence: Sierra: Configure both lane cdb and common cdb registers for ex... (diff)
downloadlinux-b872936f5757412ec11039ffe895e1b9249d6b68.tar.xz
linux-b872936f5757412ec11039ffe895e1b9249d6b68.zip
phy: cadence: Sierra: Get reset control "array" for each link
A link may have multiple lanes each with a separate reset. Get reset control "array" in order to reset all the lanes associated with the link. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/cadence/phy-cadence-sierra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c
index fdca3bd178c6..497c83827670 100644
--- a/drivers/phy/cadence/phy-cadence-sierra.c
+++ b/drivers/phy/cadence/phy-cadence-sierra.c
@@ -499,7 +499,7 @@ static int cdns_sierra_phy_probe(struct platform_device *pdev)
struct phy *gphy;
sp->phys[node].lnk_rst =
- of_reset_control_get_exclusive_by_index(child, 0);
+ of_reset_control_array_get_exclusive(child);
if (IS_ERR(sp->phys[node].lnk_rst)) {
dev_err(dev, "failed to get reset %s\n",