[PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-23 Thread Derek Basehore
From: Stephen Boyd Enabling and preparing clocks can be written quite naturally with recursion. We start at some point in the tree and recurse up the tree to find the oldest parent clk that needs to be enabled or prepared. Then we enable/prepare and return to the caller, going back to the clk we

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-24 Thread Jerome Brunet
On Tue, 2018-10-23 at 18:31 -0700, Derek Basehore wrote: > From: Stephen Boyd > > Enabling and preparing clocks can be written quite naturally with > recursion. We start at some point in the tree and recurse up the > tree to find the oldest parent clk that needs to be enabled or > prepared. Then

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-24 Thread Stephen Boyd
Quoting Derek Basehore (2018-10-23 18:31:27) > From: Stephen Boyd > > Enabling and preparing clocks can be written quite naturally with > recursion. We start at some point in the tree and recurse up the > tree to find the oldest parent clk that needs to be enabled or > prepared. Then we enable/pr

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-24 Thread dbasehore .
On Wed, Oct 24, 2018 at 6:07 AM Stephen Boyd wrote: > > Quoting Derek Basehore (2018-10-23 18:31:27) > > From: Stephen Boyd > > > > Enabling and preparing clocks can be written quite naturally with > > recursion. We start at some point in the tree and recurse up the > > tree to find the oldest pa

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-24 Thread dbasehore .
On Wed, Oct 24, 2018 at 2:51 AM Jerome Brunet wrote: > > On Tue, 2018-10-23 at 18:31 -0700, Derek Basehore wrote: > > From: Stephen Boyd > > > > Enabling and preparing clocks can be written quite naturally with > > recursion. We start at some point in the tree and recurse up the > > tree to find

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-24 Thread dbasehore .
On Wed, Oct 24, 2018 at 1:15 PM dbasehore . wrote: > > On Wed, Oct 24, 2018 at 2:51 AM Jerome Brunet wrote: > > > > On Tue, 2018-10-23 at 18:31 -0700, Derek Basehore wrote: > > > From: Stephen Boyd > > > > > > Enabling and preparing clocks can be written quite naturally with > > > recursion. We

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-24 Thread dbasehore .
On Wed, Oct 24, 2018 at 2:51 AM Jerome Brunet wrote: > > On Tue, 2018-10-23 at 18:31 -0700, Derek Basehore wrote: > > From: Stephen Boyd > > > > Enabling and preparing clocks can be written quite naturally with > > recursion. We start at some point in the tree and recurse up the > > tree to find

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-24 Thread dbasehore .
On Wed, Oct 24, 2018 at 1:15 PM dbasehore . wrote: > > On Wed, Oct 24, 2018 at 2:51 AM Jerome Brunet wrote: > > > > On Tue, 2018-10-23 at 18:31 -0700, Derek Basehore wrote: > > > From: Stephen Boyd > > > > > > Enabling and preparing clocks can be written quite naturally with > > > recursion. We

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-25 Thread Jerome Brunet
On Wed, 2018-10-24 at 13:36 -0700, dbasehore . wrote: > On Wed, Oct 24, 2018 at 2:51 AM Jerome Brunet wrote: > > > > On Tue, 2018-10-23 at 18:31 -0700, Derek Basehore wrote: > > > From: Stephen Boyd > > > > > > Enabling and preparing clocks can be written quite naturally with > > > recursion. W

Re: [PATCH 1/6] clk: Remove recursion in clk_core_{prepare,enable}()

2018-10-25 Thread Jerome Brunet
On Wed, 2018-10-24 at 13:50 -0700, dbasehore . wrote: > On Wed, Oct 24, 2018 at 1:15 PM dbasehore . wrote: > > > > On Wed, Oct 24, 2018 at 2:51 AM Jerome Brunet wrote: > > > > > > On Tue, 2018-10-23 at 18:31 -0700, Derek Basehore wrote: > > > > From: Stephen Boyd > > > > > > > > Enabling and