public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Kumar Gala <kumar.gala@freescale.com>
Cc: greg@kroah.com, linux-kernel@vger.kernel.org,
	sensors@Stimpy.netroedge.com
Subject: Re: I2C_TIMEOUT
Date: Thu, 13 Jan 2005 23:09:31 +0100	[thread overview]
Message-ID: <20050113230931.2b492b52.khali@linux-fr.org> (raw)
In-Reply-To: <9ACC0FE8-65AC-11D9-B612-000393DBC2E8@freescale.com>

Hi Kumar,

> What is the intended purpose of the I2C_TIMEOUT cmd?  It clearly sets 
> the adapter timeout, I'm just trying to understand if there is a 
> standard usage for the adapter's timeout.

An adapter's timeout is supposedly the time the adapter driver will wait
for a client to answer before giving up. As far as I can see, most SMBus
master drivers do *not* properly use this, ie they use a local variable
instead of the i2c_adapter struct member, so you cannot use the command
to change their default timeout value. Some other bus drivers (most
notably all i2c-algo-bit-based ones, but also i2c-iop3xx and
i2c-ibm_iic.c) do properly use the timeout member so the command should
work for them.

Note that I never saw the command used. Where it would make the more
sense is from user-space through i2c-dev, but even then I believe that
everyone is just happy with the default timeouts the bus drivers come
with.

Hope that helps,
-- 
Jean Delvare
http://khali.linux-fr.org/

      reply	other threads:[~2005-01-13 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-13 21:46 I2C_TIMEOUT Kumar Gala
2005-01-13 22:09 ` Jean Delvare [this message]

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=20050113230931.2b492b52.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=greg@kroah.com \
    --cc=kumar.gala@freescale.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sensors@Stimpy.netroedge.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox