MLK-21140 i2c: rpmsg: ensure received bus_id and addr is same as sent
authorClark Wang <xiaoning.wang@nxp.com>
Thu, 14 Mar 2019 07:28:59 +0000 (15:28 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit6cfc8578ccce0e664b5428738090a51322773366
treee83c084ec2c8f43921dbd65ac136ec4c269295fd
parent44622ff8c847031d65fd75a03459061faf07d0f2
MLK-21140 i2c: rpmsg: ensure received bus_id and addr is same as sent

For some chips may need long time to get the response from M4 sometimes,
enlarge timeout to 500ms.

Add a judgement to check if the received data is the current transfer
wanted.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
(cherry picked from commit 222e201b520cbd01b611fc45ae2f6b2f0b9d73a1)
drivers/i2c/busses/i2c-rpmsg-imx.c