linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Michael Turquette <mturquette@baylibre.com>,
	linux-clk@vger.kernel.org, Sergej Sawazki <ce3a@gmx.de>,
	Jyri Sarha <jsarha@ti.com>
Subject: Re: [PATCH 2/2] clk: clk-gpio: Request GPIO descriptor as LOW
Date: Fri, 29 Sep 2017 15:53:46 -0700	[thread overview]
Message-ID: <20170929225346.GN457@codeaurora.org> (raw)
In-Reply-To: <20170924161919.24832-2-linus.walleij@linaro.org>

On 09/24, Linus Walleij wrote:
> Requesting the GPIOD_OUT_LOW low will make sure the GPIO is
> deasserted when requested. The gpiolib core will make sure that
> if the GPIO line is active low, it will be logically driven high
> when deasserted, see drivers/gpiolib.c gpiod_configure_flags().
> 
> Cc: Sergej Sawazki <ce3a@gmx.de>
> Cc: Jyri Sarha <jsarha@ti.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/clk/clk-gpio.c | 10 +---------
>  1 file changed, 1 insertion(+), 9 deletions(-)
> 
> diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
> index 9d057073e110..151513c655c3 100644
> --- a/drivers/clk/clk-gpio.c
> +++ b/drivers/clk/clk-gpio.c
> @@ -109,14 +109,6 @@ static struct clk_hw *clk_register_gpio(struct device *dev, const char *name,
>  	if (!clk_gpio)
>  		return ERR_PTR(-ENOMEM);
>  
> -	/*
> -	 * Set to disabled no matter what: NOTE if the GPIO line is active low
> -	 * the GPIO descriptor knows this and will set it high to deassert the
> -	 * line. This assumes the GPIO descriptor has been requested using
> -	 * GPIOD_ASIS by the callers so we need to initialize it as disabled here.
> -	 */
> -	gpiod_set_value(gpiod, 0);
> -

Is there a reason why we split this patch out and then deleted
the comment that was introduced in the previous patch? Why not
combine these two patches into one?

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

  reply	other threads:[~2017-09-29 22:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-24 16:19 [PATCH 1/2] clk: clk-gpio: Make GPIO clock provider use descriptors only Linus Walleij
2017-09-24 16:19 ` [PATCH 2/2] clk: clk-gpio: Request GPIO descriptor as LOW Linus Walleij
2017-09-29 22:53   ` Stephen Boyd [this message]
2017-10-01 14:50     ` Linus Walleij
2017-11-02  8:21   ` Stephen Boyd
2017-09-29 22:57 ` [PATCH 1/2] clk: clk-gpio: Make GPIO clock provider use descriptors only Stephen Boyd
2017-10-01 14:53   ` Linus Walleij
2017-10-04 21:21     ` Stephen Boyd
2017-11-02  8:21 ` Stephen Boyd

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=20170929225346.GN457@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=ce3a@gmx.de \
    --cc=jsarha@ti.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    /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;
as well as URLs for NNTP newsgroup(s).