From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v2 12/17] clk: shmobile: mstp: Fix the is_enabled() operation
Date: Mon, 12 May 2014 22:20:28 +0000 [thread overview]
Message-ID: <3805357.84FqniycGz@avalon> (raw)
In-Reply-To: <1397565253-22741-13-git-send-email-geert+renesas@glider.be>
Hi Geert,
On Tuesday 15 April 2014 14:34:08 Geert Uytterhoeven wrote:
> From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>
> The MSTP[SC]R registers have clock stop bits, not clock enable bits. The
> bit value should thus be inverted in the is_enabled() operation.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: Mike Turquette <mturquette@linaro.org>
> ---
> This depends on the actual fixes, so either we need Mike's ack, or this has
> to wait until the fixes have landed in mainline.
What's the status of this patch ? Do you still carry it in your tree and plan
to push it upstream at some point ?
> v2:
> - New
>
> drivers/clk/shmobile/clk-mstp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/shmobile/clk-mstp.c
> b/drivers/clk/shmobile/clk-mstp.c index 2e5810c88d11..4f5e2c6ec853 100644
> --- a/drivers/clk/shmobile/clk-mstp.c
> +++ b/drivers/clk/shmobile/clk-mstp.c
> @@ -112,7 +112,7 @@ static int cpg_mstp_clock_is_enabled(struct clk_hw *hw)
> else
> value = clk_readl(group->smstpcr);
>
> - return !!(value & BIT(clock->bit_index));
> + return !(value & BIT(clock->bit_index));
> }
>
> static const struct clk_ops cpg_mstp_clock_ops = {
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-05-12 22:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 12:34 [PATCH v2 12/17] clk: shmobile: mstp: Fix the is_enabled() operation Geert Uytterhoeven
2014-05-12 22:20 ` Laurent Pinchart [this message]
2014-05-13 6:47 ` Geert Uytterhoeven
2014-05-13 10:22 ` Laurent Pinchart
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=3805357.84FqniycGz@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-sh@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.