MLK-17332: ARM: imx: pm-rpmsg: remove workqueue delay
authorRobin Gong <yibin.gong@nxp.com>
Wed, 3 Jan 2018 05:51:59 +0000 (13:51 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:21 +0000 (14:52 -0500)
With the latest M4 image on i.mx7ULP, which assume life cycle rpmsg is the
first channel sending message during AP bootup, we should remove the delay
timing window which other rpmsg channel may fall in, otherwise, such rpmsg
channel may probe failed as pf1550 regulator rpmsg driver.

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

index b4bfa2a..d2a64df 100644 (file)
@@ -230,8 +230,7 @@ static int pm_rpmsg_probe(struct rpmsg_device *rpdev)
                pm_heart_beat_work_handler);
 
        pm_rpmsg.first_flag = true;
-       schedule_delayed_work(&heart_beat_work,
-                       msecs_to_jiffies(100));
+       schedule_delayed_work(&heart_beat_work, 0);
 
        pm_rpmsg.restart_handler.notifier_call = pm_restart_handler;
        pm_rpmsg.restart_handler.priority = 128;