Przeglądaj źródła

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>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Kishon Vijay Abraham I 6 lat temu
rodzic
commit
1e4aaaf843
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/phy/cadence/phy-cadence-sierra.c

+ 1 - 1
drivers/phy/cadence/phy-cadence-sierra.c

@@ -497,7 +497,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",