[U-Boot] [PATCH v9 03/10] clk: add clk_release_all()

Simon Glass sjg at chromium.org
Thu Jul 6 04:48:49 UTC 2017


On 21 June 2017 at 06:42,  <patrice.chotard at st.com> wrote:
> From: Patrice Chotard <patrice.chotard at st.com>
>
> Add clk_release_all() method which Disable/Free an
> array of clocks that has been previously requested by
> clk_request/get_by_*()
>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
> v9:     _ to avoid confusion, rename clk_disable_all() in clk_release_all()
>           as this function not only disable all clocks but also free all of them
>         _ add a check in clk_release_all() to verify if a clock has been previously
>           requested before asserting and freeing it.
> v8:     _ replace clk->dev by clk[i].dev in clk_request() param
> v7:     _ none
> v6:     _ none
> v5:     _ none
> v4:     _ none
> v3:     _ add commit message
> v2:     _ create this independant path for printf() replacement
>
>  drivers/clk/clk-uclass.c | 26 ++++++++++++++++++++++++++
>  include/clk.h            | 14 ++++++++++++++
>  2 files changed, 40 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list