[media] s5p-mfc: check mfc bus ctrl before reset
authorKiran AVND <avnd.kiran@samsung.com>
Tue, 21 Oct 2014 11:07:00 +0000 (08:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 17:44:32 +0000 (15:44 -0200)
commit09accdad0d4b2a6415d3b09bd1b97024f32bb18a
tree66205501ef0687ade74a61201e6ab62533e01b16
parentd7dce6a3cdcfa95703c551a921068223df46732a
[media] s5p-mfc: check mfc bus ctrl before reset

during reset sequence, it is advisable to follow the below
sequence, in order to avoid unexpected behavior from MFC
. set SFR 0x7110 MFC_BUS_RESET_CTRL 0x1
  // wait for REQ_STATUS to be 1
. get SFR 0x7110 MFC_BUS_RESET_CTRL 0x3
  // reset now

Signed-off-by: Kiran AVND <avnd.kiran@samsung.com>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s5p-mfc/regs-mfc-v6.h
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c