Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6465d7bf authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 131c2f14 282861a4
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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;
}