video: tegra: hdmi: fix parent clock search
authorIvan Raul Guadarrama <iguadarrama@nvidia.com>
Tue, 25 Nov 2014 11:44:34 +0000 (13:44 +0200)
committerMatthew Pedro <mapedro@nvidia.com>
Wed, 18 Mar 2015 15:56:41 +0000 (08:56 -0700)
commit3aa9d89c562dc8d56db85b656fd626b3bc082f0d
tree39793664e9512cd3a0476ad4533bbaef5c9fc462
parent3e868550a1cdcd88b95704148aa679ebe6864e3f
video: tegra: hdmi: fix parent clock search

Fix the parent clock search for the display
controller. It addresses the corner case when
the divider difference is just smaller than the
chosen precision and wrongly assumed zero.
An explicit ceiling function is applied for
corretness.

Bug 1580265
Bug 1552739

Change-Id: I47312116c19813260941abcae42e4067a57f3d2c
Signed-off-by: Ivan Raul Guadarrama <iguadarrama@nvidia.com>
Reviewed-on: http://git-master/r/714972
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/video/tegra/dc/hdmi.c