]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: fimd: harden fimd_calc_clkdiv()
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Thu, 5 May 2016 16:23:38 +0000 (18:23 +0200)
committerInki Dae <daeinki@gmail.com>
Tue, 10 May 2016 14:11:42 +0000 (23:11 +0900)
commita948dd5fcec8b07738420af9d677d37d05b8b359
treecaf0f5f59fc8cdebc89a7fd8f4d272b7e0615fef
parentee4cfafa65425e85f9a823ae4bc7ea17a7f22604
drm/exynos: fimd: harden fimd_calc_clkdiv()

Don't use the vrefresh field of the DRM mode since this
one is supposed to only be used for debug purpose.
Instead use the clock field which should also provide
much more precise information.

Also sanitize the case in which the clock value
should be zero. We then just default to the maximum
clock divisor.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c