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

Commit 88bb4875 authored by Prudhvi Yarlagadda's avatar Prudhvi Yarlagadda
Browse files

i2c-qcom-geni: Add log to print the i2c bus frequency



Add log to print the i2c bus frequency. Currently log is
present only to print the default frequency which won't
work if the frequency is defined in dtsi node by i2c client.

Change-Id: I653c7a0194e58372867f0588064a6e3f9c336b58
Signed-off-by: default avatarPrudhvi Yarlagadda <pyarlaga@codeaurora.org>
parent 9fdd8ec8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1030,10 +1030,10 @@ static int geni_i2c_probe(struct platform_device *pdev)

	if (of_property_read_u32(pdev->dev.of_node, "qcom,clk-freq-out",
				&gi2c->i2c_rsc.clk_freq_out)) {
		dev_info(&pdev->dev,
			"Bus frequency not specified, default to 400KHz.\n");
		gi2c->i2c_rsc.clk_freq_out = KHz(400);
	}
	dev_info(&pdev->dev, "Bus frequency is set to %dHz\n",
					gi2c->i2c_rsc.clk_freq_out);

	gi2c->irq = platform_get_irq(pdev, 0);
	if (gi2c->irq < 0) {