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)
commit51af9979aa4f3fa8adc547d02af3fc5c43a69969
treee28209eaaf35c0437de11c334542f43d0e2136c1
parentb5d2c176b3edd9b3446455ac0902041f9a8f58b0
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-cap.c