]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
usb: xhci: tegra: Fix runtime PM support
authorJon Hunter <jonathanh@nvidia.com>
Wed, 30 May 2018 15:11:42 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 May 2018 10:45:22 +0000 (12:45 +0200)
Fix silly mistake when enabling runtime PM support for the Tegra XHCI
driver. If runtime PM was enabled correctly for the XHCI device, then
we should call pm_runtime_get_sync() to enable the device.

Fixes: ee9e5f4c7825 ("usb: xhci: tegra: Add runtime PM support")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c

index c78fc2942bca948531ce60c2e803e3309e29d18b..a8c1d073cba05e3b070e73722d02b32eaf112e69 100644 (file)
@@ -1136,7 +1136,7 @@ static int tegra_xusb_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, tegra);
 
        pm_runtime_enable(&pdev->dev);
-       if (!pm_runtime_enabled(&pdev->dev))
+       if (pm_runtime_enabled(&pdev->dev))
                err = pm_runtime_get_sync(&pdev->dev);
        else
                err = tegra_xusb_runtime_resume(&pdev->dev);