[RAMEN9610-10029][COMMON] media: mfc: fix the clock on sequence
authorSunyoung Kang <sy0816.kang@samsung.com>
Tue, 20 Nov 2018 05:10:58 +0000 (14:10 +0900)
committerhskang <hs1218.kang@samsung.com>
Fri, 28 Dec 2018 09:54:24 +0000 (18:54 +0900)
commitc915f2cb7dc6810ffd8c4fe725772cf31e119d8b
treed2ac4b9f3c43872036b5b3d8253874644c94ea2a
parent5969ffec6686e1730b5353d51acb5b33acb4f9cb
[RAMEN9610-10029][COMMON] media: mfc: fix the clock on sequence

When the clock on with drm instance, the sequence is changed as following:
cache flush (cmd 12) -> clock off -> set DRM base address
-> IP protection enable -> clock on
The base addr and protection control should be applied before clock enable
because the MFC core can run immediately when the clock enable.

Change-Id: Ib371a7b3079eb76515a38e977c76b78cc37f4c78
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
drivers/media/platform/exynos/mfc/mfc_pm.c