public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] fsl_i2c: increase I2C timeout values and make them configurable
@ 2009-09-09  9:19 Joakim Tjernlund
  2009-09-09 14:24 ` Timur Tabi
  0 siblings, 1 reply; 28+ messages in thread
From: Joakim Tjernlund @ 2009-09-09  9:19 UTC (permalink / raw)
  To: u-boot


I wonder if this hides another problem too.
if the timeout hits, -1 is returned.

Then in i2c_read()/i2c_write() you have:
	if (i2c_wait4bus() >= 0
	    && i2c_write_addr(dev, I2C_WRITE_BIT, 0) != 0
	    && __i2c_write(&a[4 - alen], alen) == alen)
		i = 0; /* No error so far */
notice how the latter part, i2c_write_addr(dev, I2C_WRITE_BIT, 0) != 0
 && __i2c_write(&a[4 - alen], alen) == alen)
is ignored(never called) when i2c_wait4bus()  returns -1

 Jocke

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

end of thread, other threads:[~2009-09-15 18:53 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-09  9:19 [U-Boot] fsl_i2c: increase I2C timeout values and make them configurable Joakim Tjernlund
2009-09-09 14:24 ` Timur Tabi
2009-09-09 14:33   ` Joakim Tjernlund
2009-09-10  8:15     ` Joakim Tjernlund
2009-09-10 13:07       ` Timur Tabi
2009-09-10 13:20         ` Joakim Tjernlund
2009-09-10 13:29           ` Timur Tabi
2009-09-10 13:58             ` Joakim Tjernlund
2009-09-10 15:22               ` Timur Tabi
2009-09-10 15:46                 ` Joakim Tjernlund
2009-09-10 15:57                   ` Timur Tabi
2009-09-10 14:57             ` Joakim Tjernlund
2009-09-10 15:26               ` Timur Tabi
2009-09-10 15:53                 ` Joakim Tjernlund
2009-09-10 16:13                   ` Timur Tabi
2009-09-10 16:30                     ` Joakim Tjernlund
2009-09-10 17:13                     ` Joakim Tjernlund
2009-09-11  8:44                       ` Joakim Tjernlund
     [not found]                         ` <4AAA6ACD.9040905@free <4AAE55FA.4070702@freescale.com>
2009-09-11 15:20                         ` Timur Tabi
2009-09-14 13:53                           ` Detlev Zundel
2009-09-14 14:18                             ` Wolfgang Grandegger
2009-09-14 14:40                               ` Timur Tabi
2009-09-14 15:54                                 ` Joakim Tjernlund
2009-09-15 11:53                                   ` Wolfgang Grandegger
2009-09-15 12:24                                     ` Joakim Tjernlund
2009-09-15 18:53                                       ` Joakim Tjernlund
2009-09-14 16:01                                 ` Wolfgang Grandegger
2009-09-14 16:18                                   ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox