]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-mfc: Fix selective sclk_mfc init
authorJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 10 Jul 2014 09:00:39 +0000 (06:00 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 21 Jul 2014 18:35:15 +0000 (15:35 -0300)
commitc1b70e9bb8fcd0de31e3b708d7bf9dede0ae3918
tree3b894f992f93397200629fe6a63efeb0640c84b4
parent21a42a81694276677fab48747dfe5a6160a0671e
[media] s5p-mfc: Fix selective sclk_mfc init

ef0c3b0f "Remove special clock usage in driver" removed
initialization of MFC special clock, arguing that there's
no need to do it explicitly, since it's one of MFC gate clock's
dependencies and gets enabled along with it. However, there's
no promise of keeping this hierarchy across Exynos SoC
releases, therefore this approach fails to provide a stable,
portable solution.

Out of all MFC versions, only v6 doesn't use special clock at all.
For other versions log a message only in case clk_get fails,
as not all the devices with the same MFC version require
initializing the clock explicitly.

Signed-off-by: Mateusz Zalega <m.zalega@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc_pm.c