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

Enable boot markers for boot KPI.

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

View file

@ -23,6 +23,7 @@
#include <linux/ioctl.h>
#include <linux/pinctrl/consumer.h>
#include <linux/slab.h>
#include <soc/qcom/boot_stats.h>
#define SE_I2C_TX_TRANS_LEN (0x26C)
#define SE_I2C_RX_TRANS_LEN (0x270)
@ -1190,6 +1191,7 @@ static int geni_i2c_probe(struct platform_device *pdev)
struct platform_device *wrapper_pdev;
struct device_node *wrapper_ph_node;
int ret;
char boot_marker[40];
gi2c = devm_kzalloc(&pdev->dev, sizeof(*gi2c), GFP_KERNEL);
if (!gi2c)
@ -1201,6 +1203,10 @@ static int geni_i2c_probe(struct platform_device *pdev)
gi2c->dev = &pdev->dev;
snprintf(boot_marker, sizeof(boot_marker),
"M - DRIVER GENI_I2C Init");
place_marker(boot_marker);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res)
return -EINVAL;
@ -1357,6 +1363,10 @@ static int geni_i2c_probe(struct platform_device *pdev)
return ret;
}
snprintf(boot_marker, sizeof(boot_marker),
"M - DRIVER GENI_I2C_%d Ready", gi2c->adap.nr);
place_marker(boot_marker);
dev_info(gi2c->dev, "I2C probed\n");
return 0;
}