From: Sifan Naeem Date: Thu, 10 Sep 2015 14:50:05 +0000 (+0100) Subject: i2c: img-scb: use line_status instead of i2c->line_status X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f0a3189978c1bd38a36f97577c38fef861ebff5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: img-scb: use line_status instead of i2c->line_status i2c->line_status accumulates the line status bits that have been seen with each interrupt. As we're only interested in that bit from the current interrupt, refer to line_status (the argument to img_i2c_auto) instead of i2c->line_status. Signed-off-by: Sifan Naeem Reviewed-by: James Hartley Acked-by: James Hogan Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c index e4daebcdf824..049d193d01ac 100644 --- a/drivers/i2c/busses/i2c-img-scb.c +++ b/drivers/i2c/busses/i2c-img-scb.c @@ -857,7 +857,7 @@ static unsigned int img_i2c_auto(struct img_i2c *i2c, } /* Enable transaction halt on start bit */ - if (!i2c->last_msg && i2c->line_status & LINESTAT_START_BIT_DET) { + if (!i2c->last_msg && line_status & LINESTAT_START_BIT_DET) { img_i2c_transaction_halt(i2c, true); /* we're no longer interested in the slave event */ i2c->int_enable &= ~INT_SLAVE_EVENT;