Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Revert "USB: dwc3: fix runtime pm imbalance on probe errors"
Browse files Browse the repository at this point in the history
This reverts commit 2d5844a.

Change-Id: Id7c7bc991611accbb86cc9e058b3d51a6ae63f9e
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
  • Loading branch information
mvaisakh committed May 20, 2023
1 parent 0a566ca commit cacbcd2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,6 @@ static int dwc3_probe(struct platform_device *pdev)
init_waitqueue_head(&dwc->wait_linkstate);
spin_lock_init(&dwc->lock);

pm_runtime_get_noresume(dev);
pm_runtime_set_active(dev);
if (dwc->enable_bus_suspend) {
pm_runtime_set_autosuspend_delay(dev,
Expand Down Expand Up @@ -1803,10 +1802,8 @@ static int dwc3_probe(struct platform_device *pdev)
err2:
dwc3_free_event_buffers(dwc);
err1:
pm_runtime_allow(dev);
pm_runtime_disable(dev);
pm_runtime_set_suspended(dev);
pm_runtime_put_noidle(dev);
pm_runtime_allow(&pdev->dev);
pm_runtime_disable(&pdev->dev);

clk_bulk_disable_unprepare(dwc->num_clks, dwc->clks);
assert_reset:
Expand Down

0 comments on commit cacbcd2

Please sign in to comment.