]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-mfc: clear 'enter_suspend' flag if suspend fails
authorPrathyush K <prathyush.k@samsung.com>
Tue, 21 Oct 2014 11:06:57 +0000 (08:06 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 17:42:43 +0000 (15:42 -0200)
commitc5a1e9ea42a851630323cd6fdf17c194b73e542a
tree81615edffa8ea16b2737b13c71896a7c7b325ed5
parent946da190f093f55db086a0f361d7074295fa1608
[media] s5p-mfc: clear 'enter_suspend' flag if suspend fails

The enter_suspend flag is set after we enter mfc suspend function but if
suspend fails after that due to any reason (like hardware timeout etc),
this flag must be cleared before returning an error. Otherwise, this
flag never gets cleared and the MFC suspend will always return an error
on subsequent tries. If clock off fails, disable hw_lock also.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
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/s5p_mfc.c