diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2023-04-04 09:25:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-20 10:18:06 +0200 |
commit | 44d257e9012ee8040e41d224d0e5bfb5ef5427ea (patch) | |
tree | 082502ee03ed4aa101a402acbad0a8b042665750 /drivers/usb/dwc3/core.c | |
parent | 9a8ad10c9f2e0925ff26308ec6756b93fc2f4977 (diff) | |
download | linux-stable-44d257e9012ee8040e41d224d0e5bfb5ef5427ea.tar.gz linux-stable-44d257e9012ee8040e41d224d0e5bfb5ef5427ea.tar.bz2 linux-stable-44d257e9012ee8040e41d224d0e5bfb5ef5427ea.zip |
USB: dwc3: fix runtime pm imbalance on unbind
Make sure to balance the runtime PM usage count on driver unbind by
adding back the pm_runtime_allow() call that had been erroneously
removed.
Fixes: 266d0493900a ("usb: dwc3: core: don't trigger runtime pm when remove driver")
Cc: stable@vger.kernel.org # 5.9
Cc: Li Jun <jun.li@nxp.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230404072524.19014-3-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/core.c')
-rw-r--r-- | drivers/usb/dwc3/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index d2350a87450e..ad48b7ebd880 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1991,6 +1991,7 @@ static int dwc3_remove(struct platform_device *pdev) dwc3_core_exit(dwc); dwc3_ulpi_exit(dwc); + pm_runtime_allow(&pdev->dev); pm_runtime_disable(&pdev->dev); pm_runtime_put_noidle(&pdev->dev); pm_runtime_set_suspended(&pdev->dev); |