Skip to content
Snippets Groups Projects
Select Git revision
  • pred_err_handling
  • pred_err_handling_more_prints
  • pbm_no_preemption_fix_test_input
  • pbm_no_preemption_fix_test
  • libpbm_kernel_fix
  • libpbm_kernel
  • bugfix/setup
  • libpbm_kernel_fix_bak
  • pbm_no_preemption
  • pbm
  • testing
  • sose22results
  • sose22
  • master protected
  • err_detect
  • kelvin
16 results

clk

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Tero Kristo authored and Stephen Boyd committed
    Currently a bug in the sci_clk_get implementation causes it to always
    return a clock belonging to the last device in the static list of clock
    data. This is due to a bug in the init code that causes the array
    used by sci_clk_get to only be populated with the clocks for the last
    device, as each device overwrites the entire array with its own clocks.
    
    Fix this by calculating the actual number of clocks for the SoC, and
    allocating the whole array in one go. Also, we don't need the handle
    to the init data array anymore after doing this, instead we can
    just compare the dev_id / clk_id against the registered clocks and
    use binary search for speed.
    
    Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
    Reported-by: default avatarDave Gerlach <d-gerlach@ti.com>
    Fixes: b745c079 ("clk: keystone: Add sci-clk driver support")
    Cc: Nishanth Menon <nm@ti.com>
    Tested-by: default avatarFranklin Cooper <fcooper@ti.com>
    Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
    f54d2cd3
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Name Last commit Last update
    ..