spi: spi-msm-geni: Add boot KPI markers

Enable boot markers for boot KPI.

Change-Id: Ic8f9aa0c92e2c6815b7efa31259c55de8060f650
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
This commit is contained in:
Vinay Sudra 2021-01-06 18:16:20 +05:30 • committed by Gerrit - the friendly Code Review server
commit ecb534f1f1

View file

@ -20,6 +20,7 @@
#include <linux/spi/spi.h>
#include <linux/spi/spi-msm-geni.h>
#include <linux/pinctrl/consumer.h>
#include <soc/qcom/boot_stats.h>
#define SPI_NUM_CHIPSELECT (4)
#define SPI_XFER_TIMEOUT_MS (250)
@ -1900,6 +1901,7 @@ static int spi_geni_probe(struct platform_device *pdev)
struct platform_device *wrapper_pdev;
struct device_node *wrapper_ph_node;
bool rt_pri, slave_en;
char boot_marker[40];
spi = spi_alloc_master(&pdev->dev, sizeof(struct spi_geni_master));
if (!spi) {
@ -1908,6 +1910,10 @@ static int spi_geni_probe(struct platform_device *pdev)
goto spi_geni_probe_err;
}
snprintf(boot_marker, sizeof(boot_marker),
"M - DRIVER GENI_SPI Init");
place_marker(boot_marker);
platform_set_drvdata(pdev, spi);
geni_mas = spi_master_get_devdata(spi);
rsc = &geni_mas->spi_rsc;
@ -2133,6 +2139,11 @@ static int spi_geni_probe(struct platform_device *pdev)
}
ret = sysfs_create_file(&(geni_mas->dev->kobj),
&dev_attr_spi_slave_state.attr);
snprintf(boot_marker, sizeof(boot_marker),
"M - DRIVER GENI_SPI_%d Ready", spi->bus_num);
place_marker(boot_marker);
return ret;
spi_geni_probe_unmap:
devm_iounmap(&pdev->dev, geni_mas->base);