Troy Kisky <[EMAIL PROTECTED]> writes:

> Interrupts are enabled at the point where
> the DAVINCI_I2C_IVR_REG is read, so unless
> at interrupt happened just at that moment,
> no interrupt would be pending. Even though
> documentation implies you should do this,
> I see no reason.
>
> Signed-off-by: Troy Kisky <[EMAIL PROTECTED]>

I'm not sure about this one.  Are you noticing performance issues with
this?  I tend to agree with you that this _seems_ unnecessary, but
I'm wondering if is there to workaround a hardware problem.

Some feedback from any of the TI engrs would be helpful here.

Kevin


> ---
>  Note: This applies on top of the previous i2c patch
>
>  drivers/i2c/busses/i2c-davinci.c |    6 ------
>  1 files changed, 0 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-davinci.c 
> b/drivers/i2c/busses/i2c-davinci.c
> index 7606193..1453c25 100755
> --- a/drivers/i2c/busses/i2c-davinci.c
> +++ b/drivers/i2c/busses/i2c-davinci.c
> @@ -247,7 +247,6 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct 
> i2c_msg *msg, int stop)
>       struct davinci_i2c_dev *dev = i2c_get_adapdata(adap);
>       struct davinci_i2c_platform_data *pdata = dev->dev->platform_data;
>       u32 flag;
> -     u32 stat;
>       u16 w;
>       int r;
>  #ifdef DAVINCI_HACK
> @@ -286,11 +285,6 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct 
> i2c_msg *msg, int stop)
>       init_completion(&dev->cmd_complete);
>       dev->cmd_err = 0;
>  
> -     /* Clear any pending interrupts by reading the IVR */
> -     do {
> -             stat = davinci_i2c_read_reg(dev, DAVINCI_I2C_IVR_REG);
> -     } while (stat);
> -
>       /* Take I2C out of reset, configure it as master and set the
>        * start bit */
>       flag = DAVINCI_I2C_MDR_IRS | DAVINCI_I2C_MDR_MST | DAVINCI_I2C_MDR_STT;
> -- 
> 1.5.4
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to