From 2581538a71371bd8c909a0ce8b313fcc7f200dab Mon Sep 17 00:00:00 2001 From: "Guoniu.Zhou" Date: Thu, 28 Jun 2018 09:47:54 +0800 Subject: [PATCH] MLK-18517-1: ISI: fix system reboot stress test from nfs fail 1. System will dump painc message and hang when do system reboot stress test. It caused by ISI HW reset function. When user open the video device, it will get the device and driver will turn on ISI power domain, but after that, ISI HW reset will first turn off and then turn on it's power. During this time, the process which open ISI channel 0 maybe sleep and the other process which open other ISI channel will active but the other channel power domain depend on channel 0. It leads to system panic. So change msleep to udelay and move HW reset to other place. 2. Refine ISI system and runtime suspend/resume. Signed-off-by: Guoniu.Zhou --- drivers/media/platform/imx8/mxc-isi-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/imx8/mxc-isi-hw.c b/drivers/media/platform/imx8/mxc-isi-hw.c index b3cfcfb29d15..57120241d7a9 100644 --- a/drivers/media/platform/imx8/mxc-isi-hw.c +++ b/drivers/media/platform/imx8/mxc-isi-hw.c @@ -161,7 +161,7 @@ void mxc_isi_channel_hw_reset(struct mxc_isi_dev *mxc_isi) if (sciErr != SC_ERR_NONE) pr_err("sc_misc_MIPI reset failed! (sciError = %d)\n", sciErr); - msleep(10); + udelay(500); sc_ipc_close(mu_id); } -- 2.17.1