From: Kishon Vijay Abraham I Date: Mon, 16 Dec 2019 09:57:06 +0000 (+0530) Subject: phy: cadence: Sierra: Get reset control "array" for each link X-Git-Tag: v5.15~4626^2~16^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b872936f5757412ec11039ffe895e1b9249d6b68;p=platform%2Fkernel%2Flinux-starfive.git 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 --- diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index fdca3bd..497c838 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",