Explorar o código

phy: ath79-usb: Fix the power on error path

[ Upstream commit 009808154c69c48d5b41fc8cf5ad5ab5704efd8f ]

In the power on function the error path doesn't return the suspend
override to its proper state. It should should deassert this reset
line to enable the suspend override.

Signed-off-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Alban Bedel %!s(int64=7) %!d(string=hai) anos
pai
achega
e55af638c4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/phy/qualcomm/phy-ath79-usb.c

+ 1 - 1
drivers/phy/qualcomm/phy-ath79-usb.c

@@ -31,7 +31,7 @@ static int ath79_usb_phy_power_on(struct phy *phy)
 
 	err = reset_control_deassert(priv->reset);
 	if (err && priv->no_suspend_override)
-		reset_control_assert(priv->no_suspend_override);
+		reset_control_deassert(priv->no_suspend_override);
 
 	return err;
 }