linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <ying.zhang22455@nxp.com>
To: linux-i2c@vger.kernel.org
Cc: xiaobo.xie@nxp.com, york.sun@nxp.com, b45385@freescale.com,
	Ying Zhang <b40530@freescale.com>
Subject: [PATCH] The input clock of I2C should be platform/2
Date: Wed, 27 Jan 2016 15:48:13 +0800	[thread overview]
Message-ID: <1453880893-3015-1-git-send-email-ying.zhang22455@nxp.com> (raw)

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

             reply	other threads:[~2016-01-27  8:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27  7:48 ying.zhang22455 [this message]
2016-04-26 21:31 ` [PATCH] The input clock of I2C should be platform/2 Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1453880893-3015-1-git-send-email-ying.zhang22455@nxp.com \
    --to=ying.zhang22455@nxp.com \
    --cc=b40530@freescale.com \
    --cc=b45385@freescale.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=xiaobo.xie@nxp.com \
    --cc=york.sun@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).