* i2c device does not support repeated start
@ 2008-05-14 9:55 Darius
2008-05-14 10:25 ` Jean Delvare
0 siblings, 1 reply; 3+ messages in thread
From: Darius @ 2008-05-14 9:55 UTC (permalink / raw)
To: i2c-GZX6beZjE8VD60Wz+7aTrA
If device does not support that, maybe there is some special flag, which
device driver can pass to i2c_master_xfer?
Darius.
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: i2c device does not support repeated start
2008-05-14 9:55 i2c device does not support repeated start Darius
@ 2008-05-14 10:25 ` Jean Delvare
[not found] ` <20080514122528.75924c09-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2008-05-14 10:25 UTC (permalink / raw)
To: Darius; +Cc: i2c-GZX6beZjE8VD60Wz+7aTrA
Hi Darius,
On Wed, 14 May 2008 12:55:09 +0300, Darius wrote:
> If device does not support that, maybe there is some special flag, which
> device driver can pass to i2c_master_xfer?
No, there isn't. If a given I2C device doesn't support repeated start,
then its driver should simply run only single-message transactions.
That is, only use i2c_master_send() and i2c_master_recv(), or for SMBus
compatibility, i2c_smbus_read_byte() and i2c_smbus_write_*().
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: i2c device does not support repeated start
[not found] ` <20080514122528.75924c09-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2008-05-14 18:22 ` Trent Piepho
0 siblings, 0 replies; 3+ messages in thread
From: Trent Piepho @ 2008-05-14 18:22 UTC (permalink / raw)
To: Jean Delvare; +Cc: Darius, i2c-GZX6beZjE8VD60Wz+7aTrA
On Wed, 14 May 2008, Jean Delvare wrote:
> Hi Darius,
>
> On Wed, 14 May 2008 12:55:09 +0300, Darius wrote:
> > If device does not support that, maybe there is some special flag, which
> > device driver can pass to i2c_master_xfer?
>
> No, there isn't. If a given I2C device doesn't support repeated start,
> then its driver should simply run only single-message transactions.
> That is, only use i2c_master_send() and i2c_master_recv(), or for SMBus
> compatibility, i2c_smbus_read_byte() and i2c_smbus_write_*().
There is also a flag, I2C_M_NOSTART, that can keep the repeated start from
being sent. Though this is probably not what you want, as you probably
want to insert a stop instead of remove the start.
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-14 18:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 9:55 i2c device does not support repeated start Darius
2008-05-14 10:25 ` Jean Delvare
[not found] ` <20080514122528.75924c09-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-05-14 18:22 ` Trent Piepho
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.