aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2018-10-16 07:22:42 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-18 13:44:39 -0400
commit8c14796b6b2485a31a50318d76d6bc4518dc9d39 (patch)
tree56a49656ec03aa828bbff11fb47615b701ffb000
parente28fd56ad5273be67d0fae5bedc7e1680e729952 (diff)
usb: xhci: tegra: Power-off power-domains on removal
Currently the XUSB power domains used by the Tegra xHCI controller are never powered off on the removal of the driver, however, they will be powered off on probe failure. Update the removal code to be consistent with the probe failure path to power off the XUSB power domains. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/xhci-tegra.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 4ee510a51d64..920a50a54095 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1249,6 +1249,11 @@ static int tegra_xusb_remove(struct platform_device *pdev)
1249 pm_runtime_put_sync(&pdev->dev); 1249 pm_runtime_put_sync(&pdev->dev);
1250 pm_runtime_disable(&pdev->dev); 1250 pm_runtime_disable(&pdev->dev);
1251 1251
1252 if (!pdev->dev.pm_domain) {
1253 tegra_powergate_power_off(TEGRA_POWERGATE_XUSBC);
1254 tegra_powergate_power_off(TEGRA_POWERGATE_XUSBA);
1255 }
1256
1252 tegra_xusb_padctl_put(tegra->padctl); 1257 tegra_xusb_padctl_put(tegra->padctl);
1253 1258
1254 return 0; 1259 return 0;