[media] s5p-mfc: Use clock gating only on MFC v5 hardware
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 10 Nov 2016 10:31:23 +0000 (08:31 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 18:40:13 +0000 (16:40 -0200)
commitc5086f130a77009dd1dcacf0fbc2ca83f09ebca4
treef05eb4c8eeef88783049eb2db6395a25753b6025
parent5d1ec73184e657fb2b429f8742cd7cb42336bc45
[media] s5p-mfc: Use clock gating only on MFC v5 hardware

Newer MFC hardware have internal clock gating feature, so additional
software-triggered clock gating sometimes causes misbehavior of the MFC
firmware and results in freeze or crash. This patch changes the driver
to use software-triggered clock gating only when working with v5 MFC
hardware, where it has been proven to work properly.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c
drivers/media/platform/s5p-mfc/s5p_mfc_common.h
drivers/media/platform/s5p-mfc/s5p_mfc_pm.c