MLK-21604 rpmsg: imx: fix the multi-core pingpong mess issue
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 29 Apr 2019 07:48:24 +0000 (15:48 +0800)
committerRichard Zhu <hongxing.zhu@nxp.com>
Mon, 29 Apr 2019 09:33:05 +0000 (17:33 +0800)
commitba7d259fd7fa84bb8764a8fc6ae616a0e579030d
tree556c0ff69295aaca43be0c60180a7fa8ba9fd7f5
parent1d3b253e11f0d09f9956abb587962a751cd34b5f
MLK-21604 rpmsg: imx: fix the multi-core pingpong mess issue

Do not use one global variable.
Pingpong maybe excuted on multiple rpmsg channels.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
drivers/rpmsg/imx_rpmsg_pingpong.c