MLK-19772: ISI: fill ISI out buffer address before enabling ISI channel
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Sat, 29 Sep 2018 03:54:03 +0000 (11:54 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitddb768a0fee91724d07a32f9dc3a881d9e1a845a
tree818609d182023540c02fa769942b3bb7d0596df8
parent3a5d0c9dc944e48fb7f94fcc0e92e2ce7766fce3
MLK-19772: ISI: fill ISI out buffer address before enabling ISI channel

1. Before enabling ISI channel, driver need to fill its out buffer
address, so correct this sequence

2. Because ISI use ping-pong buffer and write data to memory with
BUF1->BUF2->BUF1... sequence. If it finish with BUF1 and user start
a new capture process, it will start with BUF2. This will lead the
buffer ready for being read is not equal to buffer written by ISI.So
HW reset ISI, in order to confirm it start with BUF1.

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