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

Commit 81f5ee5e authored by Prudhvi Yarlagadda's avatar Prudhvi Yarlagadda
Browse files

i2c-msm-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: I0463c6980d5812c99b737b2472081ac8a041d85d
Signed-off-by: default avatarPrudhvi Yarlagadda <pyarlaga@codeaurora.org>
parent 4141c875
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1297,12 +1297,11 @@ 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))
		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);

	ret = geni_i2c_clk_map_idx(gi2c);
	if (ret) {