01 Mar, 2011

1 commit

  • Not all devices use proc_comm and determining if a clock is local
    vs. remote is fragile when done by comparing clk_ops pointers.
    Instead, implement an is_local() function for all clk_ops to
    determine if the clock is local. Doing this allows us to remove
    the last references to clk_ops_pcom from clock.c and compile it
    for targets with CONFIG_MSM_PROC_COMM=n.

    We don't need to set the clk_ops at runtime until 7x30 local
    clock detection comes in. Right now it's just complicating things
    so just set the ops pointer statically.

    Signed-off-by: Stephen Boyd
    Signed-off-by: David Brown

    Stephen Boyd
     

29 Jan, 2011

2 commits

  • There are currently 3 separate directories for clock debugging in
    debugfs: clk_enable, clk_rate, and clk_local. Each of these
    directories contains a list of clocks. This is rather annoying
    when you are focusing on one clock and want to enable/disable it
    and then check its rate. You either have to cd to the other
    directory or cat ../clk_rate/.

    Invert the layout so that there is one clock directory containing
    a directory for each clock. Inside each respective clock
    directory place an enable, rate, and is_local file relating to
    the clk_enable, clk_disable, and clk_local directories that exist
    today.

    Reviewed-by: Saravana Kannan
    Signed-off-by: Stephen Boyd
    Signed-off-by: David Brown

    Stephen Boyd
     
  • The clock debugfs code is large enough, and easy enough to separate,
    that it deserves its own file which is compiled only when
    CONFIG_DEBUG_FS is enabled.

    Also, cleanup header file #includes that are no longer required.

    Reviewed-by: Saravana Kannan
    Signed-off-by: Matt Wagantall
    Signed-off-by: Stephen Boyd
    Signed-off-by: David Brown

    Matt Wagantall