ath79: phy-ar7200-usb: adapt old behavior of arch/mips/ath79/dev-usb.c
authorJohann Neuhauser <johann@it-neuhauser.de>
Thu, 19 Dec 2019 12:07:17 +0000 (13:07 +0100)
committerRISCi_ATOM <bob@bobcall.me>
Thu, 27 Feb 2020 21:32:19 +0000 (16:32 -0500)
commit0ba8a65fbd16b904defcef68ab0a83380400c771
tree3692b11f687e82104d81a7396bf43eb0fbe7e20c
parentfd92e91a5756ca61d415877414c7678ed135f45b
ath79: phy-ar7200-usb: adapt old behavior of arch/mips/ath79/dev-usb.c

[ Upstream commit 6cca6fffa06b1996f9bcc280f766e8ba4fa97d45 ]

Do not put usb-phy into reset if clearing the usb-phy reset or
setting the suspend_override has failed.

Reorder (de)asserts like in arch/mips/ath79/dev-usb.c.

Add an optional reset_control "usb-phy-analog", which is needed for
ar934x SoCs like in the old mach-driver arch/mips/ath79/dev-usb.c.

Tested-By: Lech Perczak <lech.perczak@gmail.com> [TL-WDR4300]
Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
[added reference to upstream commit, Tested-by]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ath79/patches-4.14/0004-phy-add-ath79-usb-phys.patch