Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b74c2d87 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: core: allow device to runtime_suspend several times



After going through runtime_suspend/runtime_resume
cycle once we would be left with an unbalanced
pm_runtime_get() call. Fix that by making sure that
we try to suspend right after resuming so things are
balanced and device can runtime_suspend again.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent f6c274e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1192,6 +1192,7 @@ static int dwc3_runtime_resume(struct device *dev)
	}

	pm_runtime_mark_last_busy(dev);
	pm_runtime_put(dev);

	return 0;
}