[i2c] [PATCH] Add polling transfer for i2c-pxa

eric miao eric.y.miao at gmail.com
Wed Nov 14 01:37:36 CET 2007


On Nov 14, 2007 4:36 AM, Jean Delvare <khali at linux-fr.org> wrote:
> Hi Mike,
>
> On Tue, 13 Nov 2007 13:47:31 +0200, Mike Rapoport wrote:
> > eric miao wrote:
> > > 2. When switch to next segment message, a repeated restart would be better
> > > send to hold the I2C bus. That seems to be what the original interrupt driven
> > > code is doing...??
> >
> > I was not sure it is necessary to repeat restart because polling transfer cannot
> > be interrupted.
>
> This is completely unrelated. Repeated starts is something that the
> slave chip expects as part of the I2C protocol. Doing a stop and a
> start instead of a repeated start means (depending on the chip) a
> different transaction. It doesn't have anything to do with the code
> being interruptible or not.
>

y, I guess some chips can survive a stop and start, yet not sure if all
others are ok with this.

> --
> Jean Delvare
>



-- 
Cheers
- eric



More information about the i2c mailing list