MLK-14241-2 ARM: imx: pm-rpmsg: add mutex protect for pm_send_message
authorRobin Gong <yibin.gong@nxp.com>
Mon, 20 Feb 2017 00:58:30 +0000 (08:58 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:46 +0000 (15:10 -0500)
commitbb79e3f92fabe1fbc1df37f98f41d5875f9d7ced
treee22e387118056e5b442976675afcb4146d44e96b
parent1f85d5ed57007d47bed0d89485580f2d39d12b5b
MLK-14241-2 ARM: imx: pm-rpmsg: add mutex protect for pm_send_message

Heatbeat workqueue and suspend/resume may call pm_send_message at the same
time as pf1550-regulator-rpmsg driver, so add mutex to avoid the potential
pm_qpos_* reentry issue.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
arch/arm/mach-imx/pm-rpmsg.c