usb: phy: tegra: Clean up ulpi_phy_power_off
authorDmitry Osipenko <digetx@gmail.com>
Mon, 6 Jan 2020 01:33:59 +0000 (04:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 10:15:31 +0000 (11:15 +0100)
commit28d190ac437c675763f03b17407ea16c1dd8c613
tree4425f0ac261d3659fb4568e7722129a13c6a9410
parent62a7f62891247e83b6a17cedae8f8ae15cff2c5e
usb: phy: tegra: Clean up ulpi_phy_power_off

Firstly, the PHY's clock needs to unprepared to keep prepare count
balanced. Secondly, downstream code suggests that reset is synchronous
and thus it should be asserted before disabling clock.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200106013416.9604-4-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-tegra-usb.c