Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bff4056c authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt
Browse files

i2c: fix i2c-sh_mobile rx underrun



Fix receive path underrun in i2c-sh_mobile driver.

Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 185aed75
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -318,6 +318,7 @@ static int sh_mobile_i2c_isr_rx(struct sh_mobile_i2c_data *pd)
		} else
			data = i2c_op(pd, OP_RX, 0);

		if (real_pos >= 0)
			pd->msg->buf[real_pos] = data;
	} while (0);