spi: spi_qsd: add boot marker

Add boot marker for booting KPI measurement

Change-Id: I8ba79f1b0e71e662ad20fcded128d43363e8302f
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
This commit is contained in:
Zhiqiang Tu 2018-05-22 15:44:52 +08:00 committed by Gerrit - the friendly Code Review server
parent c0a42ee0ed
commit 1bf695251f

View file

@ -44,6 +44,7 @@
#include <linux/msm-sps.h>
#include <linux/msm-bus.h>
#include <linux/msm-bus-board.h>
#include <soc/qcom/boot_stats.h>
#include "spi_qsd.h"
#define SPI_MAX_BYTES_PER_WORD (4)
@ -2581,6 +2582,7 @@ static int msm_spi_probe(struct platform_device *pdev)
int i = 0;
int rc = -ENXIO;
struct msm_spi_platform_data *pdata;
char boot_marker[40];
master = spi_alloc_master(&pdev->dev, sizeof(struct msm_spi));
if (!master) {
@ -2649,6 +2651,10 @@ static int msm_spi_probe(struct platform_device *pdev)
}
}
snprintf(boot_marker, sizeof(boot_marker),
"M - DRIVER MSM SPI_%d Init", pdev->id);
place_marker(boot_marker);
for (i = 0; i < ARRAY_SIZE(spi_cs_rsrcs); ++i)
dd->cs_gpios[i].valid = 0;
@ -2740,6 +2746,10 @@ skip_dma_resources:
rc = sysfs_create_file(&(dd->dev->kobj), &dev_attr_spi_qup_state.attr);
spi_debugfs_init(dd);
snprintf(boot_marker, sizeof(boot_marker),
"M - DRIVER MSM SPI_%d Ready", pdev->id);
place_marker(boot_marker);
return 0;
err_attrs: