MLK-22850 i2c: rpmsg-imx: add msg_id for checking response id
authorClark Wang <xiaoning.wang@nxp.com>
Fri, 25 Oct 2019 05:05:22 +0000 (13:05 +0800)
committerClark Wang <xiaoning.wang@nxp.com>
Tue, 29 Oct 2019 08:22:02 +0000 (16:22 +0800)
commit71c5490732baa290476c22a5904cd2909e01e7a2
tree0aa777d667bdba2fda8064c8385b363b5cc8ec20
parentbf4a45c5e62f500b0689cfd7312903444e932218
MLK-22850 i2c: rpmsg-imx: add msg_id for checking response id

M4 deals with the rpmsg msg by FIFO. When a timeout occurs on Acore
side, it might impact the next several rpmsg requests and cause the
these requests timeout, too.

For this case, add a msg_id in the unused buffer field, check the
request id of response each time.

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