Commit e55af638 authored by Alban Bedel's avatar Alban Bedel Committed by Greg Kroah-Hartman

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

[ Upstream commit 00980815 ]

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: default avatarAlban Bedel <albeu@free.fr>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fc8176da
...@@ -31,7 +31,7 @@ static int ath79_usb_phy_power_on(struct phy *phy) ...@@ -31,7 +31,7 @@ static int ath79_usb_phy_power_on(struct phy *phy)
err = reset_control_deassert(priv->reset); err = reset_control_deassert(priv->reset);
if (err && priv->no_suspend_override) if (err && priv->no_suspend_override)
reset_control_assert(priv->no_suspend_override); reset_control_deassert(priv->no_suspend_override);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment