* Re: [PATCH 1/1] clk: tegra: Fix periph_clk_to_bit macro
[not found] ` <1362606444-19970-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2013-03-06 21:59 ` Stephen Warren
[not found] ` <5137BC29.2030909-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-03-07 7:02 ` Thierry Reding
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2013-03-06 21:59 UTC (permalink / raw)
To: Andrew Chew, Peter De Schrijver, Prashant Gaikwad, Mike Turquette
Cc: thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Yen Lin,
ARM kernel mailing list
On 03/06/2013 02:47 PM, Andrew Chew wrote:
> The parameter name should be "gate", not "periph". This worked, however,
> because it happens that everywhere periph_clk_to_bit is called, "gate" was
> in the local scope.
Peter, Prashant, can I get an ack/reviewed-by please?
Note: I'm also CC'ing Mike and the LAKML mailing list; common clock
driver changes should be sent to Mike as CCF maintainer, and any
ARM-related changes should typically get sent to LAKML in the absence of
any other specific subsystem list.
> Signed-off-by: Yen Lin <yelin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> drivers/clk/tegra/clk-periph-gate.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/tegra/clk-periph-gate.c b/drivers/clk/tegra/clk-periph-gate.c
> index 6dd5332..d87e1ce 100644
> --- a/drivers/clk/tegra/clk-periph-gate.c
> +++ b/drivers/clk/tegra/clk-periph-gate.c
> @@ -41,7 +41,7 @@ static DEFINE_SPINLOCK(periph_ref_lock);
> #define write_rst_clr(val, gate) \
> writel_relaxed(val, gate->clk_base + (gate->regs->rst_clr_reg))
>
> -#define periph_clk_to_bit(periph) (1 << (gate->clk_num % 32))
> +#define periph_clk_to_bit(gate) (1 << (gate->clk_num % 32))
>
> /* Peripheral gate clock ops */
> static int clk_periph_is_enabled(struct clk_hw *hw)
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 1/1] clk: tegra: Fix periph_clk_to_bit macro
[not found] ` <1362606444-19970-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-03-06 21:59 ` Stephen Warren
@ 2013-03-07 7:02 ` Thierry Reding
2013-03-11 9:09 ` Peter De Schrijver
2013-03-21 19:59 ` Stephen Warren
3 siblings, 0 replies; 7+ messages in thread
From: Thierry Reding @ 2013-03-07 7:02 UTC (permalink / raw)
To: Andrew Chew
Cc: swarren-3lzwWm7+Weoh9ZMKESR00Q,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Yen Lin
[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]
On Wed, Mar 06, 2013 at 01:47:24PM -0800, Andrew Chew wrote:
> The parameter name should be "gate", not "periph". This worked, however,
> because it happens that everywhere periph_clk_to_bit is called, "gate" was
> in the local scope.
>
> Signed-off-by: Yen Lin <yelin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> drivers/clk/tegra/clk-periph-gate.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/tegra/clk-periph-gate.c b/drivers/clk/tegra/clk-periph-gate.c
> index 6dd5332..d87e1ce 100644
> --- a/drivers/clk/tegra/clk-periph-gate.c
> +++ b/drivers/clk/tegra/clk-periph-gate.c
> @@ -41,7 +41,7 @@ static DEFINE_SPINLOCK(periph_ref_lock);
> #define write_rst_clr(val, gate) \
> writel_relaxed(val, gate->clk_base + (gate->regs->rst_clr_reg))
>
> -#define periph_clk_to_bit(periph) (1 << (gate->clk_num % 32))
> +#define periph_clk_to_bit(gate) (1 << (gate->clk_num % 32))
>
> /* Peripheral gate clock ops */
> static int clk_periph_is_enabled(struct clk_hw *hw)
Reviewed-by: Thierry Reding <thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 1/1] clk: tegra: Fix periph_clk_to_bit macro
[not found] ` <1362606444-19970-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-03-06 21:59 ` Stephen Warren
2013-03-07 7:02 ` Thierry Reding
@ 2013-03-11 9:09 ` Peter De Schrijver
2013-03-21 19:59 ` Stephen Warren
3 siblings, 0 replies; 7+ messages in thread
From: Peter De Schrijver @ 2013-03-11 9:09 UTC (permalink / raw)
To: Andrew Chew
Cc: thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org,
swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Yen Lin
On Wed, Mar 06, 2013 at 10:47:24PM +0100, Andrew Chew wrote:
> The parameter name should be "gate", not "periph". This worked, however,
> because it happens that everywhere periph_clk_to_bit is called, "gate" was
> in the local scope.
>
> Signed-off-by: Yen Lin <yelin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Acked-by: Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 1/1] clk: tegra: Fix periph_clk_to_bit macro
[not found] ` <1362606444-19970-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
` (2 preceding siblings ...)
2013-03-11 9:09 ` Peter De Schrijver
@ 2013-03-21 19:59 ` Stephen Warren
[not found] ` <20130321212542.834.78153@quantum>
3 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2013-03-21 19:59 UTC (permalink / raw)
To: Mike Turquette
Cc: Andrew Chew, thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Yen Lin
On 03/06/2013 02:47 PM, Andrew Chew wrote:
> The parameter name should be "gate", not "periph". This worked, however,
> because it happens that everywhere periph_clk_to_bit is called, "gate" was
> in the local scope.
Mike, could you please ack this so that I can take it through the Tegra
tree with the rest of the Tegra clock changes for 3.10? Thanks.
Oh, I see this was never sent to Mike:-( Hence, I'm quoting the whole patch.
> Signed-off-by: Yen Lin <yelin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> drivers/clk/tegra/clk-periph-gate.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/tegra/clk-periph-gate.c b/drivers/clk/tegra/clk-periph-gate.c
> index 6dd5332..d87e1ce 100644
> --- a/drivers/clk/tegra/clk-periph-gate.c
> +++ b/drivers/clk/tegra/clk-periph-gate.c
> @@ -41,7 +41,7 @@ static DEFINE_SPINLOCK(periph_ref_lock);
> #define write_rst_clr(val, gate) \
> writel_relaxed(val, gate->clk_base + (gate->regs->rst_clr_reg))
>
> -#define periph_clk_to_bit(periph) (1 << (gate->clk_num % 32))
> +#define periph_clk_to_bit(gate) (1 << (gate->clk_num % 32))
>
> /* Peripheral gate clock ops */
> static int clk_periph_is_enabled(struct clk_hw *hw)
^ permalink raw reply [flat|nested] 7+ messages in thread