* [U-Boot] [PATCH] designware_i2c: remove 10msec delay in i2c_xfer_finish
@ 2013-11-07 13:52 Alexey Brodkin
2013-11-13 6:39 ` [U-Boot] " Heiko Schocher
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Brodkin @ 2013-11-07 13:52 UTC (permalink / raw)
To: u-boot
This delay applies to any data transfer on I2C bus.
For example 1kB data read with per-byte access (which happens if
environment is stored in I2C EEPROM) takes more than 10 seconds.
Moreover data bus driver has to care about bus state and data transfer,
but not about internal states of attached devices.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Tom Rini <trini@ti.com>
cc: Armando Visconti <armando.visconti@st.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Heiko Schocher <hs@denx.de>
Cc: Vipin KUMAR <vipin.kumar@st.com>
Cc: Tom Rix <Tom.Rix@windriver.com>
Cc: Mischa Jonker <mjonker@synopsys.com>
---
drivers/i2c/designware_i2c.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c
index c5c6015..cb2ac04 100644
--- a/drivers/i2c/designware_i2c.c
+++ b/drivers/i2c/designware_i2c.c
@@ -249,9 +249,6 @@ static int i2c_xfer_finish(void)
i2c_flush_rxfifo();
- /* Wait for read/write operation to complete on actual memory */
- udelay(10000);
-
return 0;
}
--
1.8.4.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] designware_i2c: remove 10msec delay in i2c_xfer_finish
2013-11-07 13:52 [U-Boot] [PATCH] designware_i2c: remove 10msec delay in i2c_xfer_finish Alexey Brodkin
@ 2013-11-13 6:39 ` Heiko Schocher
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2013-11-13 6:39 UTC (permalink / raw)
To: u-boot
Hello Alexey,
Am 07.11.2013 14:52, schrieb Alexey Brodkin:
> This delay applies to any data transfer on I2C bus.
>
> For example 1kB data read with per-byte access (which happens if
> environment is stored in I2C EEPROM) takes more than 10 seconds.
>
> Moreover data bus driver has to care about bus state and data transfer,
> but not about internal states of attached devices.
>
> Signed-off-by: Alexey Brodkin<abrodkin@synopsys.com>
>
> Cc: Tom Rini<trini@ti.com>
> cc: Armando Visconti<armando.visconti@st.com>
> Cc: Stefan Roese<sr@denx.de>
> Cc: Albert ARIBAUD<albert.u.boot@aribaud.net>
> Cc: Heiko Schocher<hs@denx.de>
> Cc: Vipin KUMAR<vipin.kumar@st.com>
> Cc: Tom Rix<Tom.Rix@windriver.com>
> Cc: Mischa Jonker<mjonker@synopsys.com>
>
> ---
> drivers/i2c/designware_i2c.c | 3 ---
> 1 file changed, 3 deletions(-)
Applied to u-boot-i2c.git
Thanks!
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-13 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07 13:52 [U-Boot] [PATCH] designware_i2c: remove 10msec delay in i2c_xfer_finish Alexey Brodkin
2013-11-13 6:39 ` [U-Boot] " Heiko Schocher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox