public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* I2C_TIMEOUT
@ 2005-01-13 21:46 Kumar Gala
  2005-01-13 22:09 ` I2C_TIMEOUT Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2005-01-13 21:46 UTC (permalink / raw)
  To: Greg KH; +Cc: lkml Development, sensors

Greg,

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.

thanks

- kumar


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

* Re: I2C_TIMEOUT
  2005-01-13 21:46 I2C_TIMEOUT Kumar Gala
@ 2005-01-13 22:09 ` Jean Delvare
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2005-01-13 22:09 UTC (permalink / raw)
  To: Kumar Gala; +Cc: greg, linux-kernel, sensors

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/

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

end of thread, other threads:[~2005-01-14  0:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-13 21:46 I2C_TIMEOUT Kumar Gala
2005-01-13 22:09 ` I2C_TIMEOUT Jean Delvare

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