Thread (13 messages) 13 messages, 4 authors, 2015-11-20

[PATCH v3 03/12] drm/rockchip: return a true clock rate to adjusted_mode

From: Chris Zhong <hidden>
Date: 2015-11-19 08:10:27
Also in: dri-devel, linux-rockchip, lkml


On 11/19/2015 03:08 PM, Mark yao wrote:
On 2015?11?19? 11:35, Chris Zhong wrote:
quoted
+
+    /*
+     * Sometimes the clock driver can not set a accurate clock_rate 
for vop,
+     * get the true rate of vop_dclk and set it back to adjusted_mode.
+     */
+    adjusted_mode->clock = clk_get_rate(vop->dclk) / 1000;
  out:
      ret_clk = clk_enable(vop->dclk);
      if (ret_clk < 0) {
Hi Chris
     How about use clk_round_rate to check the clock rate first?
     I think we can check it on vop_crtc_mode_fixup.
Hi Mark
     Nice advice, I'll modify it in next version. Thanks.
Thanks.
- ?ark Yao

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help