phy: cadence: Sierra: Get reset control "array" for each link
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 16 Dec 2019 09:57:06 +0000 (15:27 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 8 Jan 2020 07:28:06 +0000 (12:58 +0530)
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>
drivers/phy/cadence/phy-cadence-sierra.c

index fdca3bd..497c838 100644 (file)
@@ -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",