* [U-Boot] [PATCH] I2C: Exynos5: Reduce the Delay in s3c24x0 i2c driver
@ 2013-03-25 4:38 Akshay Saraswat
2013-06-04 7:34 ` Minkyu Kang
0 siblings, 1 reply; 2+ messages in thread
From: Akshay Saraswat @ 2013-03-25 4:38 UTC (permalink / raw)
To: u-boot
From: Alim Akhtar <alim.akhtar@samsung.com>
When no device is conneted on the i2c channel then i2c_probe command
was taking too much of time (around 3 mins) to come out from the loop.
Now reduced the delay loop to milisec value.
This is tested on smdk5250 only. As i dont have s3c24x0 boards, so i cannt
test on these baord.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
---
drivers/i2c/s3c24x0_i2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c
index 769a2ba..789d103 100644
--- a/drivers/i2c/s3c24x0_i2c.c
+++ b/drivers/i2c/s3c24x0_i2c.c
@@ -111,7 +111,7 @@ static int WaitForXfer(struct s3c24x0_i2c *i2c)
{
int i;
- i = I2C_TIMEOUT * 10000;
+ i = I2C_TIMEOUT * 10;
while (!(readl(&i2c->iiccon) & I2CCON_IRPND) && (i > 0)) {
udelay(100);
i--;
@@ -292,7 +292,7 @@ static int i2c_transfer(struct s3c24x0_i2c *i2c,
}
/* Check I2C bus idle */
- i = I2C_TIMEOUT * 1000;
+ i = I2C_TIMEOUT * 10;
while ((readl(&i2c->iicstat) & I2CSTAT_BSY) && (i > 0)) {
udelay(1000);
i--;
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] I2C: Exynos5: Reduce the Delay in s3c24x0 i2c driver
2013-03-25 4:38 [U-Boot] [PATCH] I2C: Exynos5: Reduce the Delay in s3c24x0 i2c driver Akshay Saraswat
@ 2013-06-04 7:34 ` Minkyu Kang
0 siblings, 0 replies; 2+ messages in thread
From: Minkyu Kang @ 2013-06-04 7:34 UTC (permalink / raw)
To: u-boot
Dear Alim Akhtar,
On 25/03/13 13:38, Akshay Saraswat wrote:
> From: Alim Akhtar <alim.akhtar@samsung.com>
>
> When no device is conneted on the i2c channel then i2c_probe command
conneted -> connected
> was taking too much of time (around 3 mins) to come out from the loop.
> Now reduced the delay loop to milisec value.
> This is tested on smdk5250 only. As i dont have s3c24x0 boards, so i cannt
> test on these baord.
dont -> don't, cannt -> can't?, baord -> board
And these two line(This is tested... board) should move under "---" line.
I think it is not a commit msg.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> Signed-off-by: Doug Anderson <dianders@chromium.org>
> Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
> ---
> drivers/i2c/s3c24x0_i2c.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Patch looks good.
Please fix typo.
Thanks,
Minkyu Kang.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-04 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-25 4:38 [U-Boot] [PATCH] I2C: Exynos5: Reduce the Delay in s3c24x0 i2c driver Akshay Saraswat
2013-06-04 7:34 ` Minkyu Kang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox