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

Commit 8a363355 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: gadget: Fix runtime PM vote from pull_up handler"

parents bfac58c7 3aa03791
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2166,6 +2166,9 @@ static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on)
				msecs_to_jiffies(DWC3_PULL_UP_TIMEOUT));
		if (ret == 0) {
			dev_err(dwc->dev, "timed out waiting for SETUP phase\n");
			pm_runtime_put_autosuspend(dwc->dev);
			dbg_event(0xFF, "Pullup timeout put",
				atomic_read(&dwc->dev->power.usage_count));
			return -ETIMEDOUT;
		}
	}