Re: [PATCH 21/47] New version of CRISv32 I2C driver.

2007-12-12 Thread Andrew Morton
On Fri, 30 Nov 2007 15:54:01 +0100 Jesper Nilsson <[EMAIL PROTECTED]> wrote: > +int > +i2c_write(unsigned char theSlave, void *data, size_t nbytes) > +{ > + int error, cntr = 3; > + unsigned char bytes_wrote = 0; > + unsigned char value; > + unsigned long flags; > + > +

Re: [PATCH 21/47] New version of CRISv32 I2C driver.

2007-12-12 Thread Andrew Morton
On Fri, 30 Nov 2007 15:54:01 +0100 Jesper Nilsson [EMAIL PROTECTED] wrote: +int +i2c_write(unsigned char theSlave, void *data, size_t nbytes) +{ + int error, cntr = 3; + unsigned char bytes_wrote = 0; + unsigned char value; + unsigned long flags; + +

[PATCH 21/47] New version of CRISv32 I2C driver.

2007-12-06 Thread Jesper Nilsson
- Add i2c_write and i2c_read as functions. - Use spinlocks for critical regions. - Add config item to set I2C data and clock port. - Put unneeded testcode inside #if 0. - Remove CVS id tag. Signed-off-by: Jesper Nilsson <[EMAIL PROTECTED]> --- arch/cris/arch-v32/drivers/i2c.c | 199

[PATCH 21/47] New version of CRISv32 I2C driver.

2007-12-06 Thread Jesper Nilsson
- Add i2c_write and i2c_read as functions. - Use spinlocks for critical regions. - Add config item to set I2C data and clock port. - Put unneeded testcode inside #if 0. - Remove CVS id tag. Signed-off-by: Jesper Nilsson [EMAIL PROTECTED] --- arch/cris/arch-v32/drivers/i2c.c | 199