From: Wolfgang Denk Date: Fri, 04 Sep 2009 20:30:24 +0200 Subject: [U-Boot] Odd value for I2C_TIMEOUT in fsl_i2c.c In-Reply-To: <4AA132B3.3050004@freescale.com> References: <4A9FDF1E.4090908@freescale.com> <4AA0BEC5.3010505@denx.de> <20090904092503.058A0832E8DE@gemini.denx.de> <20090904150135.E88CB832E8DE@gemini.denx.de> <4AA12E52.2080403@freescale.com> <1252078092.6005.63.camel@localhost.localdomain> <4AA132B3.3050004@freescale.com> Message-ID: <20090904183024.67AAA832E8DE@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Timur Tabi, In message <4AA132B3.3050004@freescale.com> you wrote: > Peter Tyser wrote: > > If this is the case, the timeout should be the maximum (or reasonable > > maximum) time an I2C transaction could take. > > How long is that? Is one millisecond good enough? Probably not. If you place a read request to a slow device it may take tens of milliseconds, or even longer - I have no idea. IIRC we had a box with a LCD display connected over I2C, which didn't ent into production as originally designed because writing the content took over 100 millisec. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Very ugly or very beautiful women should be flattered on their understanding, and mediocre ones on their beauty. -- Philip Earl of Chesterfield