mbox series

[0/3] clk: let clock perform allocation in init

Message ID 20190924123954.31561-1-jbrunet@baylibre.com
Headers show
Series clk: let clock perform allocation in init | expand

Message

Jerome Brunet Sept. 24, 2019, 12:39 p.m. UTC
This patchset is a follow up on this pinky swear [0].
Its purpose is:
 * Clarify the acceptable use of clk_ops init() callback
 * Let the init() callback return an error code in case anything
   fail.
 * Add the terminate() counter part of of init() to release the
   resources which may have been claimed in init()

After discussing with Stephen at LPC, I decided to drop the 2 last patches
of the RFC [1]. I can live without it for now and nobody expressed a
critical need to get the proposed placeholder.

[0]: https://lkml.kernel.org/r/CAEG3pNB-143Pr_xCTPj=tURhpiTiJqi61xfDGDVdU7zG5H-2tA@mail.gmail.com
[1]: https://lkml.kernel.org/r/20190828102012.4493-1-jbrunet@baylibre.com

Jerome Brunet (3):
  clk: actually call the clock init before any other callback of the
    clock
  clk: let init callback return an error code
  clk: add terminate callback to clk_ops

 drivers/clk/clk.c                     | 38 ++++++++++++++++++---------
 drivers/clk/meson/clk-mpll.c          |  4 ++-
 drivers/clk/meson/clk-phase.c         |  4 ++-
 drivers/clk/meson/clk-pll.c           |  4 ++-
 drivers/clk/meson/sclk-div.c          |  4 ++-
 drivers/clk/microchip/clk-core.c      |  8 ++++--
 drivers/clk/mmp/clk-frac.c            |  4 ++-
 drivers/clk/mmp/clk-mix.c             |  4 ++-
 drivers/clk/qcom/clk-hfpll.c          |  6 +++--
 drivers/clk/rockchip/clk-pll.c        | 28 ++++++++++++--------
 drivers/clk/ti/clock.h                |  2 +-
 drivers/clk/ti/clockdomain.c          |  8 +++---
 drivers/net/phy/mdio-mux-meson-g12a.c |  4 ++-
 include/linux/clk-provider.h          | 13 ++++++---
 14 files changed, 90 insertions(+), 41 deletions(-)

-- 
2.21.0

Comments

Jerome Brunet Nov. 18, 2019, 10:08 a.m. UTC | #1
On Tue 24 Sep 2019 at 14:39, Jerome Brunet <jbrunet@baylibre.com> wrote:

> This patchset is a follow up on this pinky swear [0].

> Its purpose is:

>  * Clarify the acceptable use of clk_ops init() callback

>  * Let the init() callback return an error code in case anything

>    fail.

>  * Add the terminate() counter part of of init() to release the

>    resources which may have been claimed in init()

>

> After discussing with Stephen at LPC, I decided to drop the 2 last patches

> of the RFC [1]. I can live without it for now and nobody expressed a

> critical need to get the proposed placeholder.

>

> [0]: https://lkml.kernel.org/r/CAEG3pNB-143Pr_xCTPj=tURhpiTiJqi61xfDGDVdU7zG5H-2tA@mail.gmail.com

> [1]: https://lkml.kernel.org/r/20190828102012.4493-1-jbrunet@baylibre.com

>

> Jerome Brunet (3):

>   clk: actually call the clock init before any other callback of the

>     clock

>   clk: let init callback return an error code

>   clk: add terminate callback to clk_ops

>

>  drivers/clk/clk.c                     | 38 ++++++++++++++++++---------

>  drivers/clk/meson/clk-mpll.c          |  4 ++-

>  drivers/clk/meson/clk-phase.c         |  4 ++-

>  drivers/clk/meson/clk-pll.c           |  4 ++-

>  drivers/clk/meson/sclk-div.c          |  4 ++-

>  drivers/clk/microchip/clk-core.c      |  8 ++++--

>  drivers/clk/mmp/clk-frac.c            |  4 ++-

>  drivers/clk/mmp/clk-mix.c             |  4 ++-

>  drivers/clk/qcom/clk-hfpll.c          |  6 +++--

>  drivers/clk/rockchip/clk-pll.c        | 28 ++++++++++++--------

>  drivers/clk/ti/clock.h                |  2 +-

>  drivers/clk/ti/clockdomain.c          |  8 +++---

>  drivers/net/phy/mdio-mux-meson-g12a.c |  4 ++-

>  include/linux/clk-provider.h          | 13 ++++++---

>  14 files changed, 90 insertions(+), 41 deletions(-)


Hi Stephen,

Is this series Ok with you ?
Do you think you can take it at the beginning of the next cycle ?

Thx
Jerome
Jerome Brunet Nov. 29, 2019, 3:36 p.m. UTC | #2
On Tue 24 Sep 2019 at 14:39, Jerome Brunet <jbrunet@baylibre.com> wrote:

> This patchset is a follow up on this pinky swear [0].

> Its purpose is:

>  * Clarify the acceptable use of clk_ops init() callback

>  * Let the init() callback return an error code in case anything

>    fail.

>  * Add the terminate() counter part of of init() to release the

>    resources which may have been claimed in init()

>

> After discussing with Stephen at LPC, I decided to drop the 2 last patches

> of the RFC [1]. I can live without it for now and nobody expressed a

> critical need to get the proposed placeholder.

>

> [0]: https://lkml.kernel.org/r/CAEG3pNB-143Pr_xCTPj=tURhpiTiJqi61xfDGDVdU7zG5H-2tA@mail.gmail.com

> [1]: https://lkml.kernel.org/r/20190828102012.4493-1-jbrunet@baylibre.com

>


Hi Stephen,

Do you think we can fit this into the incoming cycle ?

Cheers
Jerome

> Jerome Brunet (3):

>   clk: actually call the clock init before any other callback of the

>     clock

>   clk: let init callback return an error code

>   clk: add terminate callback to clk_ops

>

>  drivers/clk/clk.c                     | 38 ++++++++++++++++++---------

>  drivers/clk/meson/clk-mpll.c          |  4 ++-

>  drivers/clk/meson/clk-phase.c         |  4 ++-

>  drivers/clk/meson/clk-pll.c           |  4 ++-

>  drivers/clk/meson/sclk-div.c          |  4 ++-

>  drivers/clk/microchip/clk-core.c      |  8 ++++--

>  drivers/clk/mmp/clk-frac.c            |  4 ++-

>  drivers/clk/mmp/clk-mix.c             |  4 ++-

>  drivers/clk/qcom/clk-hfpll.c          |  6 +++--

>  drivers/clk/rockchip/clk-pll.c        | 28 ++++++++++++--------

>  drivers/clk/ti/clock.h                |  2 +-

>  drivers/clk/ti/clockdomain.c          |  8 +++---

>  drivers/net/phy/mdio-mux-meson-g12a.c |  4 ++-

>  include/linux/clk-provider.h          | 13 ++++++---

>  14 files changed, 90 insertions(+), 41 deletions(-)
Stephen Boyd Dec. 3, 2019, 9:05 a.m. UTC | #3
Quoting Jerome Brunet (2019-11-29 07:36:28)
> 

> On Tue 24 Sep 2019 at 14:39, Jerome Brunet <jbrunet@baylibre.com> wrote:

> 

> > This patchset is a follow up on this pinky swear [0].

> > Its purpose is:

> >  * Clarify the acceptable use of clk_ops init() callback

> >  * Let the init() callback return an error code in case anything

> >    fail.

> >  * Add the terminate() counter part of of init() to release the

> >    resources which may have been claimed in init()

> >

> > After discussing with Stephen at LPC, I decided to drop the 2 last patches

> > of the RFC [1]. I can live without it for now and nobody expressed a

> > critical need to get the proposed placeholder.

> >

> > [0]: https://lkml.kernel.org/r/CAEG3pNB-143Pr_xCTPj=tURhpiTiJqi61xfDGDVdU7zG5H-2tA@mail.gmail.com

> > [1]: https://lkml.kernel.org/r/20190828102012.4493-1-jbrunet@baylibre.com

> >

> 

> Hi Stephen,

> 

> Do you think we can fit this into the incoming cycle ?

> 


Sorry I missed this one. I'll apply it soon but won't be for this merge
window.
Jerome Brunet Dec. 16, 2019, 9:17 a.m. UTC | #4
On Tue 03 Dec 2019 at 10:05, Stephen Boyd <sboyd@kernel.org> wrote:

> Quoting Jerome Brunet (2019-11-29 07:36:28)

>> 

>> On Tue 24 Sep 2019 at 14:39, Jerome Brunet <jbrunet@baylibre.com> wrote:

>> 

>> > This patchset is a follow up on this pinky swear [0].

>> > Its purpose is:

>> >  * Clarify the acceptable use of clk_ops init() callback

>> >  * Let the init() callback return an error code in case anything

>> >    fail.

>> >  * Add the terminate() counter part of of init() to release the

>> >    resources which may have been claimed in init()

>> >

>> > After discussing with Stephen at LPC, I decided to drop the 2 last patches

>> > of the RFC [1]. I can live without it for now and nobody expressed a

>> > critical need to get the proposed placeholder.

>> >

>> > [0]: https://lkml.kernel.org/r/CAEG3pNB-143Pr_xCTPj=tURhpiTiJqi61xfDGDVdU7zG5H-2tA@mail.gmail.com

>> > [1]: https://lkml.kernel.org/r/20190828102012.4493-1-jbrunet@baylibre.com

>> >

>> 

>> Hi Stephen,

>> 

>> Do you think we can fit this into the incoming cycle ?

>> 

>

> Sorry I missed this one. I'll apply it soon but won't be for this merge

> window.


No worries, I was referring to the v5.6 cycle, not the v5.5 merge
window.