From: Trent Piepho <xyzzy-zY4eFNvK5D+xbKUeIHjxjQ@public.gmane.org>
To: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: Darius <augulis.darius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: i2c device does not support repeated start
Date: Wed, 14 May 2008 11:22:46 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0805141115520.23876@shell4.speakeasy.net> (raw)
In-Reply-To: <20080514122528.75924c09-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
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
prev parent reply other threads:[~2008-05-14 18:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 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=Pine.LNX.4.58.0805141115520.23876@shell4.speakeasy.net \
--to=xyzzy-zy4efnvk5d+xbkueihjxjq@public.gmane.org \
--cc=augulis.darius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
/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