MLK-19108: ISI: fix isi hang issue when open it many times
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Tue, 31 Jul 2018 07:58:41 +0000 (15:58 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commiteb28f9fd151a82c1ad5957de0a7c905db4611d56
tree58d9e019e5be322880fc7a1ca6f7c3e34e7e93b3
parent5c9540e71241a183a50f58ef91e2009ef3db9d8c
MLK-19108: ISI: fix isi hang issue when open it many times

When one ISI channel is receiving data, if an other process
just open it at the same time and then close, it will lead
to this channel hang. The reason is soft reset in release
callback, so it make the channel stop work. Add an counter
for open isi channel and really soft reset the channel when
the counter equal to zero.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby.Cai <robby.cai@nxp.com>
drivers/media/platform/imx8/mxc-isi-core.c