mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08:00
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 <sifan.naeem@imgtec.com> Reviewed-by: James Hartley <james.hartley@imgtec.com> Acked-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
987008dbc4
commit
0f0a318997
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user