UPSTREAM: drm/rockchip: return a true clock rate to adjusted_mode
authorChris Zhong <zyw@rock-chips.com>
Wed, 6 Jan 2016 04:03:53 +0000 (12:03 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Thu, 17 Mar 2016 01:42:04 +0000 (09:42 +0800)
commitd6fce1adfbe01a2edf27fa8678570d035d8e9a22
tree6bc62ca885873f5262d2b3c8b8faf9d177982c6c
parentca49d45391b6c64e55e3aa454771dfe1f912116f
UPSTREAM: drm/rockchip: return a true clock rate to adjusted_mode

Since the mipi dsi driver need to use the clock of vop to make the
calculation of Blanking. But sometimes the clock driver can not set a
accurate clock_rate for vop, get it by clk_round_rate before mode_set,
so we can get the true value.

Change-Id: I04e6a499763258c2e16a09e3a59cf3a1e4593706
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Acked-by: Mark Yao <mark.yao@rock-chips.com>
(cherry picked from commit b59b8de3149736e5094cb786978a1ba8d6d55b34)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c