1. 14 2月, 2014 1 次提交
  2. 28 1月, 2014 4 次提交
  3. 18 1月, 2014 21 次提交
  4. 17 1月, 2014 12 次提交
  5. 15 1月, 2014 2 次提交
    • M
      clk: composite: pass mux_hw into determine_rate · 5d2043fb
      Mike Turquette 提交于
      The composite clock's .determine_rate implementation can call the
      underyling .determine_rate callback corresponding to rate_hw or the
      underlying .determine_rate callback corresponding to mux_hw. In both
      cases we pass in rate_hw, which is wrong. Fixed by passing mux_hw into
      the correct callback.
      Reported-by: NLemon Dai <dailemon.gl@gmail.com>
      Signed-off-by: NMike Turquette <mturquette@linaro.org>
      5d2043fb
    • V
      clk: shmobile: Fix MSTP clock array initialization · 209f4fed
      Valentine Barshak 提交于
      The clks member of the clk_onecell_data structure should
      point to a valid clk array (no NULL entries allowed),
      and the clk_num should be equal to the number
      of elements in the clks array.
      
      The MSTP driver fails to satisfy the above conditions.
      The clks array may contain NULL entries if not all
      clock-indices are initialized in the device tree.
      Thus, if the clock indices are interleaved we end up
      with NULL pointers in-between.
      
      The other problem is the driver uses maximum clock index
      as the number of clocks, which is incorrect (less than
      the actual number of clocks by 1).
      
      Fix the first issue by pre-setting the whole clks array
      with ERR_PTR(-ENOENT) pointers instead of zeros; and
      use maximum clkidx + 1 as the number of clocks to fix
      the other one.
      
      This should make of_clk_src_onecell_get() return the following:
      * valid clk pointers for all clocks registered;
      * ERR_PTR(-EINVAL) if (idx >= clk_data->clk_num);
      * ERR_PTR(-ENOENT) if the clock at the selected index was not
        initialized in the device tree (and was not registered).
      
      Changes in V2:
      * removed brackets from the one-line for loop
      Signed-off-by: NValentine Barshak <valentine.barshak@cogentembedded.com>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Tested-by: NBen Dooks <ben.dooks@codethink.co.uk>
      Signed-off-by: NMike Turquette <mturquette@linaro.org>
      209f4fed