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

Commit c1308a67 authored by Jack Pham's avatar Jack Pham Committed by Matt Wagantall
Browse files

usb: dwc3: gadget: Remove redundant pm_runtime_get()



Remove extra call to pm_runtime_get_sync() from vbus_session()
as that lead to a runtime PM counter mismatch and prevent
the controller from ever entering low power mode.

Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 7d2d3238
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1966,7 +1966,6 @@ static int dwc3_gadget_vbus_session(struct usb_gadget *_gadget, int is_active)

	is_active = !!is_active;

	pm_runtime_get_sync(dwc->dev);
	spin_lock_irqsave(&dwc->lock, flags);

	/* Mark that the vbus was powered */