usb: host: xhci-tegra: Correct phy enable sequence
authorNagarjuna Kristam <nkristam@nvidia.com>
Mon, 4 Nov 2019 09:24:30 +0000 (14:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:06:51 +0000 (20:06 +0100)
commitb309d5aeaa8342d9b6bbcd94c256a1cc247f6fad
treee2f8ee1eae9d43b210349e336d43d4507ce67c7d
parent05f3234419d380058f8418042d18ff44b10eeacd
usb: host: xhci-tegra: Correct phy enable sequence

commit 6351653febbb784d86fdf83afe41f7523a61b392 upstream.

XUSB phy needs to be enabled before un-powergating the power partitions.
However in the current sequence, it happens opposite. Correct the phy
enable and powergating partition sequence to avoid any boot hangs.

Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Jui Chang Kuo <jckuo@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/1572859470-7823-1-git-send-email-nkristam@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c