All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Tyser <ptyser@xes-inc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Odd value for I2C_TIMEOUT in fsl_i2c.c
Date: Fri, 04 Sep 2009 10:28:12 -0500	[thread overview]
Message-ID: <1252078092.6005.63.camel@localhost.localdomain> (raw)
In-Reply-To: <4AA12E52.2080403@freescale.com>

On Fri, 2009-09-04 at 10:12 -0500, Timur Tabi wrote:
> Wolfgang Denk wrote:
> 
> > Wrong Question. I don't know enough about the I2C protocol. Why is
> > i2c_wait4bus necessary?
> 
> Ok, why is it necessary?

Freescale's I2C core supports multiple masters.  I'd guess that
i2c_wait4bus() is used to ensure the bus is not in use by a different
master before initiating a read or write.  Its polling the MBB status
bit, which is automatically set/cleared when the controller sees a
START/STOP which supports this.

If this is the case, the timeout should be the maximum (or reasonable
maximum) time an I2C transaction could take.

Best,
Peter

  reply	other threads:[~2009-09-04 15:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-03 15:22 [U-Boot] Odd value for I2C_TIMEOUT in fsl_i2c.c Timur Tabi
2009-09-04  7:16 ` Heiko Schocher
2009-09-04  9:25   ` Wolfgang Denk
2009-09-04 14:09     ` Timur Tabi
2009-09-04 15:01       ` Wolfgang Denk
2009-09-04 15:12         ` Timur Tabi
2009-09-04 15:28           ` Peter Tyser [this message]
2009-09-04 15:30             ` Timur Tabi
2009-09-04 16:04               ` Peter Tyser
2009-09-04 18:30               ` Wolfgang Denk
2009-09-04 18:39                 ` Timur Tabi
2009-09-04 19:28                   ` Wolfgang Denk
2009-09-04 18:28             ` Wolfgang Denk
2009-09-04 15:29           ` Wolfgang Denk
2009-09-04 18:34             ` Scott Wood
2009-09-04 19:23               ` Wolfgang Denk
2009-09-04 19:28                 ` Scott Wood
2009-09-04  8:31 ` Wolfgang Denk
2009-09-04 18:36   ` Scott Wood
2009-09-04 19:27     ` Wolfgang Denk

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=1252078092.6005.63.camel@localhost.localdomain \
    --to=ptyser@xes-inc.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.