Re: [PATCH v6 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-19 Thread Ray Jui
On 1/19/2015 11:44 AM, Russell King - ARM Linux wrote: > To see why atomic_t is pure obfuscation: > > typedef struct { > int counter; > } atomic_t; > > So, counter is a plain int. > > On Mon, Jan 19, 2015 at 11:23:47AM -0800, Ray Jui wrote: >> +static irqreturn_t bcm_iproc_i2c_isr(int

Re: [PATCH v6 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-19 Thread Russell King - ARM Linux
To see why atomic_t is pure obfuscation: typedef struct { int counter; } atomic_t; So, counter is a plain int. On Mon, Jan 19, 2015 at 11:23:47AM -0800, Ray Jui wrote: > +static irqreturn_t bcm_iproc_i2c_isr(int irq, void *data) > +{ > + struct bcm_iproc_i2c_dev *iproc_i2c = data; >

[PATCH v6 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-19 Thread Ray Jui
Add initial support to the Broadcom iProc I2C controller found in the iProc family of SoCs. The iProc I2C controller has separate internal TX and RX FIFOs, each has a size of 64 bytes. The iProc I2C controller supports two bus speeds including standard mode (100kHz) and fast mode (400kHz) Signed-