linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] The input clock of I2C should be platform/2
@ 2016-01-27  7:48 ying.zhang22455
  2016-04-26 21:31 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: ying.zhang22455 @ 2016-01-27  7:48 UTC (permalink / raw)
  To: linux-i2c; +Cc: xiaobo.xie, york.sun, b45385, Ying Zhang

From: Ying Zhang <b40530@freescale.com>

Signed-off-by: Ying Zhang <b40530@freescale.com>
---
 drivers/i2c/busses/i2c-imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index a2b132c..806cb99 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -475,7 +475,7 @@ static void i2c_imx_set_clk(struct imx_i2c_struct *i2c_imx)
 	int i;
 
 	/* Divider value calculation */
-	i2c_clk_rate = clk_get_rate(i2c_imx->clk);
+	i2c_clk_rate = clk_get_rate(i2c_imx->clk) / 2;
 	if (i2c_imx->cur_clk == i2c_clk_rate)
 		return;
 
-- 
2.1.0.27.g96db324

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-26 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27  7:48 [PATCH] The input clock of I2C should be platform/2 ying.zhang22455
2016-04-26 21:31 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).