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

Jean Delvare khali at linux-fr.org
Tue Nov 13 21:36:07 CET 2007

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.

Jean Delvare

More information about the i2c mailing list