drm/exynos/mic: fix timing calculation
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 10 May 2016 13:45:48 +0000 (15:45 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:50:48 +0000 (13:50 +0900)
MIC_BS_SIZE_2D depends only on hactive.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie6120a2b6aef251f0bfb295b41666dac5f9c5e42

drivers/gpu/drm/exynos/exynos_drm_mic.c

index 9869d70..8fe42c4 100644 (file)
@@ -193,7 +193,7 @@ static void mic_set_output_timing(struct exynos_mic *mic)
        u32 reg, bs_size_2d;
 
        DRM_DEBUG("w: %u, h: %u\n", vm.hactive, vm.vactive);
-       bs_size_2d = ((vm.hactive >> 2) << 1) + (vm.vactive % 4);
+       bs_size_2d = ((vm.hactive >> 2) << 1) + (vm.hactive % 4);
        reg = MIC_BS_SIZE_2D(bs_size_2d);
        writel(reg, mic->reg + MIC_2D_OUTPUT_TIMING_2);