mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
d195373966
commit
ecb534f1f1
1 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue