From 42a78608b9e10821c793e3022add18f28ec76dea Mon Sep 17 00:00:00 2001 From: Madhanraj Chelladurai Date: Fri, 13 Dec 2019 16:18:58 +0530 Subject: [PATCH] gnss: sirf: KPI marker for GNSS driver KPI marker added to find boot up time of driver Change-Id: Iaec9c35a0881db59d9327b74c37e5896f735b216 Signed-off-by: Madhanraj Chelladurai --- drivers/gnsssirf/gnss_sirf.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gnsssirf/gnss_sirf.c b/drivers/gnsssirf/gnss_sirf.c index 5281cecb6f15..76dcc7547cda 100644 --- a/drivers/gnsssirf/gnss_sirf.c +++ b/drivers/gnsssirf/gnss_sirf.c @@ -39,9 +39,9 @@ #include #include #include +#include #include "gnss_sirf.h" - static int resetPin; static int onOffPin; @@ -190,6 +190,7 @@ static int gnss_sirf_probe(struct platform_device *pdev) { int ret = -ENODEV; struct device *dev; + char boot_marker[40]; dev = &pdev->dev; dev_info(dev, "%s", __func__); @@ -219,8 +220,12 @@ static int gnss_sirf_probe(struct platform_device *pdev) gpio_direction_output(onOffPin, 1); if (gnss_sirf_init_ports() < 0) pr_err("gnss_sirf_init_ports failed\n"); - else + else { ret = 0; + snprintf(boot_marker, sizeof(boot_marker), + "M - DRIVER GNSS Ready"); + place_marker(boot_marker); + } } } return ret;