MLK-18517-1: ISI: fix system reboot stress test from nfs fail
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Thu, 28 Jun 2018 01:47:54 +0000 (09:47 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit2581538a71371bd8c909a0ce8b313fcc7f200dab
tree9ce3729fb6ec96b26f62e041226a22b02175b437
parenteb4e84e8df2ac7d27cce4d2121028aa048cda8b9
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 <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-hw.c