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)
committerPetr Štetiar <ynezz@true.cz>
Sun, 23 Feb 2020 07:27:32 +0000 (08:27 +0100)
commitc9b6bb43ce4582706b5d9aed5b64d8f4b186c410
treebdb78e879a303ad830accebc139bc0732014b617
parentb2660e67f0fb9f3398b871ad1fef5725e1b5d7d2
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