public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v7 03/10] clk: add clk_disable_all()
Date: Tue, 20 Jun 2017 14:11:41 +0200	[thread overview]
Message-ID: <20170620141141.0fbf8c30@karo-electronics.de> (raw)
In-Reply-To: <1497952751-28477-4-git-send-email-patrice.chotard@st.com>

Hi,

On Tue, 20 Jun 2017 11:59:04 +0200 patrice.chotard at st.com wrote:
> From: Patrice Chotard <patrice.chotard@st.com>
> 
> Add clk_disable_all() method which Request/Disable/Free an
> array of clocks that has been previously requested by
> clk_request/get_by_*()
> 
> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
> 
> 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 | 22 ++++++++++++++++++++++
>  include/clk.h            | 10 ++++++++++
>  2 files changed, 32 insertions(+)
> 
> diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
> index 83b6328..e732514 100644
> --- a/drivers/clk/clk-uclass.c
> +++ b/drivers/clk/clk-uclass.c
> @@ -187,6 +187,28 @@ int clk_disable(struct clk *clk)
>  	return ops->disable(clk);
>  }
>  
> +int clk_disable_all(struct clk *clk, int count)
> +{
> +	int i, ret;
> +
> +	debug("%s(clk=%p count=%d)\n", __func__, clk, count);
> +
> +	for (i = 0; i < count; i++) {
> +		ret = clk_request(clk->dev, &clk[i]);
>
Shouldn't this be:
		ret = clk_request(clk[i].dev, &clk[i]);



Lothar Waßmann

  reply	other threads:[~2017-06-20 12:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20  9:59 [U-Boot] [PATCH v7 00/10] usb: Extend ehci and ohci generic drivers patrice.chotard at st.com
2017-06-20  9:59 ` [U-Boot] [PATCH v7 01/10] reset: add reset_request() patrice.chotard at st.com
2017-06-20  9:59 ` [U-Boot] [PATCH v7 02/10] reset: add reset_assert_all() patrice.chotard at st.com
2017-06-20  9:59 ` [U-Boot] [PATCH v7 03/10] clk: add clk_disable_all() patrice.chotard at st.com
2017-06-20 12:11   ` Lothar Waßmann [this message]
2017-06-20 12:40     ` Patrice CHOTARD
2017-06-20  9:59 ` [U-Boot] [PATCH v7 04/10] dm: core: add ofnode_count_phandle_with_args() patrice.chotard at st.com
2017-06-20 18:26   ` Simon Glass
2017-06-20  9:59 ` [U-Boot] [PATCH v7 05/10] usb: host: ehci-generic: replace printf() by error() patrice.chotard at st.com
2017-06-20  9:59 ` [U-Boot] [PATCH v7 06/10] usb: host: ehci-generic: add error path and .remove callback patrice.chotard at st.com
2017-06-20 10:09   ` Marek Vasut
2017-06-20 11:26     ` Lothar Waßmann
2017-06-20 12:22     ` Patrice CHOTARD
2017-06-20 11:32   ` Lothar Waßmann
2017-06-20 12:28     ` Patrice CHOTARD
2017-06-20  9:59 ` [U-Boot] [PATCH v7 07/10] usb: host: ehci-generic: add generic PHY support patrice.chotard at st.com
2017-06-20  9:59 ` [U-Boot] [PATCH v7 08/10] usb: host: ohci-generic: add CLOCK support patrice.chotard at st.com
2017-06-20 12:06   ` Lothar Waßmann
2017-06-20 12:56     ` Patrice CHOTARD
2017-06-21  7:56       ` Lothar Waßmann
2017-06-21  8:36         ` Patrice CHOTARD
2017-06-20  9:59 ` [U-Boot] [PATCH v7 09/10] usb: host: ohci-generic: add RESET support patrice.chotard at st.com
2017-06-20 18:26   ` Simon Glass
2017-06-20  9:59 ` [U-Boot] [PATCH v7 10/10] usb: host: ohci-generic: add generic PHY support patrice.chotard at st.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170620141141.0fbf8c30@karo-electronics.de \
    --to=lw@karo-electronics.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox