Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
phy: ath79-usb: Fix the power on error path
Browse files Browse the repository at this point in the history
[ Upstream commit 0098081 ]

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>
  • Loading branch information
AlbanBedel authored and gregkh committed Mar 5, 2019
1 parent fc8176d commit e55af63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/phy/qualcomm/phy-ath79-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e55af63

Please sign in to comment.