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

Commit 08d4c1e9 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Add boot marker for logging boot_kpi in sys node"

parents cd047618 a68f4f8d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <linux/module.h>
#include <linux/device.h>
#include <linux/utsname.h>
#include <soc/qcom/boot_stats.h>

#include <linux/usb/composite.h>
#include <linux/usb/otg.h>
@@ -921,6 +922,7 @@ static int set_config(struct usb_composite_dev *cdev,
	if (!c)
		goto done;

	place_marker("M - USB Device is enumerated");
	usb_gadget_set_state(gadget, USB_STATE_CONFIGURED);
	cdev->config = c;

@@ -2430,6 +2432,7 @@ void composite_resume(struct usb_gadget *gadget)
	 * suspend/resume callbacks?
	 */
	DBG(cdev, "resume\n");
	place_marker("M - USB device is resumed");
	if (cdev->driver->resume)
		cdev->driver->resume(cdev);