Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1439861

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

From Stephen Boyd <sboyd@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents
Date 2016-07-09 02:50 +0200
Message-ID <rSOCZ-3U2-9@gated-at.bofh.it> (permalink)
References <rML58-wN-7@gated-at.bofh.it> <rML58-wN-27@gated-at.bofh.it> <rQhUR-5uR-1@gated-at.bofh.it> <rR3d7-zy-7@gated-at.bofh.it> <rSNxf-3dT-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 07/08/2016 04:32 PM, Michael Turquette wrote:
> ---
>  drivers/clk/clk.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index 820a939fb6bb..70efe4c4e0cc 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -2449,8 +2449,14 @@ static int __clk_core_init(struct clk_core *core)
>  	hlist_for_each_entry_safe(orphan, tmp2, &clk_orphan_list, child_node) {
>  		struct clk_core *parent = __clk_init_parent(orphan);
>  
> -		if (parent)
> -			clk_core_reparent(orphan, parent);
> +		/*
> +		 * we could call __clk_set_parent, but that would result in a
> +		 * reducant call to the .set_rate op, if it exists

Did you mean .set_parent op?

> +		 */
> +		if (parent) {
> +			__clk_set_parent_before(orphan, parent);
> +			__clk_set_parent_after(orphan, parent, NULL);
> +		}
>  	}
>  
>  	/*


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's  parents Stephen Boyd <sboyd@codeaurora.org> - 2016-07-02 03:30 +0200
  Re: [PATCH v9 01/10] clk: fix initial state of critical clock's  parents James Liao <jamesjj.liao@mediatek.com> - 2016-07-04 06:00 +0200
    Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents Michael Turquette <mturquette@baylibre.com> - 2016-07-09 01:40 +0200
      Re: [PATCH v9 01/10] clk: fix initial state of critical clock's  parents Stephen Boyd <sboyd@codeaurora.org> - 2016-07-09 02:50 +0200
      Re: [PATCH v9 01/10] clk: fix initial state of critical clock's  parents James Liao <jamesjj.liao@mediatek.com> - 2016-07-11 10:30 +0200

csiph-web