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

Commit 8acbfc52 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3-msm: Add boot marker"

parents 2124c4de 2372ea39
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@
#include <linux/irq.h>
#include <linux/extcon.h>
#include <linux/reset.h>
#include <soc/qcom/boot_stats.h>

#include "power.h"
#include "core.h"
@@ -2917,6 +2918,7 @@ static int dwc3_msm_probe(struct platform_device *pdev)
	int ret = 0;
	int ext_hub_reset_gpio;
	u32 val;
	char boot_marker[40];

	mdwc = devm_kzalloc(&pdev->dev, sizeof(*mdwc), GFP_KERNEL);
	if (!mdwc)
@@ -3264,8 +3266,15 @@ static int dwc3_msm_probe(struct platform_device *pdev)
		mdwc->host_only_mode = true;
		mdwc->id_state = DWC3_ID_GROUND;
		dwc3_ext_event_notify(mdwc);
		snprintf(boot_marker, sizeof(boot_marker),
			"M - DRIVER %s Host Ready", dev_name(&pdev->dev));
	} else {
		snprintf(boot_marker, sizeof(boot_marker),
			"M - DRIVER %s Device Ready", dev_name(&pdev->dev));
	}

	place_marker(boot_marker);

	return 0;

put_dwc3: