MLK-19901: ISI: manually clean isi status register
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Fri, 12 Oct 2018 02:55:41 +0000 (10:55 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commite476338820085445a6f06dc8bc223a78e8cffb2c
treef4786a9139f3c7c2e2e51bacf6addcca3b637584
parentafd991c2f30349c1324444ea9bfb27da40b9f8d5
MLK-19901: ISI: manually clean isi status register

When QM run two linux and divide ISI resource into two
parts, channel 0-3 for one linux and channel 4-7 for the
other. If dom0 destroy domU which camera is running, then
restart domU. ISI will trigger interrupt immediately after
register irq handler when driver probe. The reason for this
is that status register of ISI isn't cleared. ISI have no
ablility to reset its register to defautl value expcept power
off all resource of ISI, but it can't be done in two os. So
manually clean status before registering irq when driver probe.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit b84601aaef15870c80f684b1881b22e9dd2ba9a3)
drivers/media/platform/imx8/mxc-isi-core.c