* [PATCH] clk: ux500: fix bit error
@ 2012-11-27 19:15 Linus Walleij
2012-11-27 22:56 ` Ulf Hansson
0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2012-11-27 19:15 UTC (permalink / raw)
To: linux-arm-kernel
From: Linus Walleij <linus.walleij@linaro.org>
This fixes a bit error in the U8500 clock implementation: the
unused p2_pclk12 registered at bit 12 in periphereral group 6
was defined as using bit 11 rather than bit 12.
When walking over and disabling the unused clocks in the tree
at late init time, p2_pclk12 was disabled, by effectively
clearing the but for p2_pclk11 instead of bit 12 as it should
have, thus disabling gpio block 6 and 7.
Reported-by: Lee Jones <lee.jones@linaro.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Philippe Begnic <philippe.begnic@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Mike if this gets ACKed (beware of more mistakes from this
coder) it should go into v3.7 or if that fails be tagged with
Cc: stable at kernel.org.
---
drivers/clk/ux500/u8500_clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/ux500/u8500_clk.c b/drivers/clk/ux500/u8500_clk.c
index fb9f291..20ecaa7 100644
--- a/drivers/clk/ux500/u8500_clk.c
+++ b/drivers/clk/ux500/u8500_clk.c
@@ -317,7 +317,7 @@ void u8500_clk_init(void)
clk_register_clkdev(clk, NULL, "gpioblock1");
clk = clk_reg_prcc_pclk("p2_pclk12", "per2clk", U8500_CLKRST2_BASE,
- BIT(11), 0);
+ BIT(12), 0);
clk = clk_reg_prcc_pclk("p3_pclk0", "per3clk", U8500_CLKRST3_BASE,
BIT(0), 0);
--
1.7.11.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] clk: ux500: fix bit error
2012-11-27 19:15 [PATCH] clk: ux500: fix bit error Linus Walleij
@ 2012-11-27 22:56 ` Ulf Hansson
2012-12-04 19:31 ` Mike Turquette
0 siblings, 1 reply; 3+ messages in thread
From: Ulf Hansson @ 2012-11-27 22:56 UTC (permalink / raw)
To: linux-arm-kernel
On 27 November 2012 20:15, Linus Walleij <linus.walleij@stericsson.com> wrote:
> From: Linus Walleij <linus.walleij@linaro.org>
>
> This fixes a bit error in the U8500 clock implementation: the
> unused p2_pclk12 registered at bit 12 in periphereral group 6
> was defined as using bit 11 rather than bit 12.
>
> When walking over and disabling the unused clocks in the tree
> at late init time, p2_pclk12 was disabled, by effectively
> clearing the but for p2_pclk11 instead of bit 12 as it should
> have, thus disabling gpio block 6 and 7.
>
> Reported-by: Lee Jones <lee.jones@linaro.org>
> Cc: Ulf Hansson <ulf.hansson@linaro.org>
> Cc: Philippe Begnic <philippe.begnic@st.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Mike if this gets ACKed (beware of more mistakes from this
> coder) it should go into v3.7 or if that fails be tagged with
> Cc: stable at kernel.org.
> ---
> drivers/clk/ux500/u8500_clk.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/ux500/u8500_clk.c b/drivers/clk/ux500/u8500_clk.c
> index fb9f291..20ecaa7 100644
> --- a/drivers/clk/ux500/u8500_clk.c
> +++ b/drivers/clk/ux500/u8500_clk.c
> @@ -317,7 +317,7 @@ void u8500_clk_init(void)
> clk_register_clkdev(clk, NULL, "gpioblock1");
>
> clk = clk_reg_prcc_pclk("p2_pclk12", "per2clk", U8500_CLKRST2_BASE,
> - BIT(11), 0);
> + BIT(12), 0);
>
> clk = clk_reg_prcc_pclk("p3_pclk0", "per3clk", U8500_CLKRST3_BASE,
> BIT(0), 0);
> --
> 1.7.11.3
>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Yes, for sure this need to go stable. What a mess a "typo" can cause.
Thanks a lot Linus for finding this!
Kind regards
Ulf Hansson
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] clk: ux500: fix bit error
2012-11-27 22:56 ` Ulf Hansson
@ 2012-12-04 19:31 ` Mike Turquette
0 siblings, 0 replies; 3+ messages in thread
From: Mike Turquette @ 2012-12-04 19:31 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Nov 27, 2012 at 2:56 PM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> On 27 November 2012 20:15, Linus Walleij <linus.walleij@stericsson.com> wrote:
>> From: Linus Walleij <linus.walleij@linaro.org>
>>
>> This fixes a bit error in the U8500 clock implementation: the
>> unused p2_pclk12 registered at bit 12 in periphereral group 6
>> was defined as using bit 11 rather than bit 12.
>>
>> When walking over and disabling the unused clocks in the tree
>> at late init time, p2_pclk12 was disabled, by effectively
>> clearing the but for p2_pclk11 instead of bit 12 as it should
>> have, thus disabling gpio block 6 and 7.
>>
>> Reported-by: Lee Jones <lee.jones@linaro.org>
>> Cc: Ulf Hansson <ulf.hansson@linaro.org>
>> Cc: Philippe Begnic <philippe.begnic@st.com>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>> ---
>> Mike if this gets ACKed (beware of more mistakes from this
>> coder) it should go into v3.7 or if that fails be tagged with
>> Cc: stable at kernel.org.
>> ---
>> drivers/clk/ux500/u8500_clk.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/ux500/u8500_clk.c b/drivers/clk/ux500/u8500_clk.c
>> index fb9f291..20ecaa7 100644
>> --- a/drivers/clk/ux500/u8500_clk.c
>> +++ b/drivers/clk/ux500/u8500_clk.c
>> @@ -317,7 +317,7 @@ void u8500_clk_init(void)
>> clk_register_clkdev(clk, NULL, "gpioblock1");
>>
>> clk = clk_reg_prcc_pclk("p2_pclk12", "per2clk", U8500_CLKRST2_BASE,
>> - BIT(11), 0);
>> + BIT(12), 0);
>>
>> clk = clk_reg_prcc_pclk("p3_pclk0", "per3clk", U8500_CLKRST3_BASE,
>> BIT(0), 0);
>> --
>> 1.7.11.3
>>
>
> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
>
> Yes, for sure this need to go stable. What a mess a "typo" can cause.
> Thanks a lot Linus for finding this!
>
This one is queued in clk-next for the 3.8 merge window with a Cc to stable.
All but one of the patches I've sent as fixes for the 3.7-rc bugfix
window have been for ux500. I'm happy to see the this code is getting
used and fixed on your platforms but more testing on the initial
patches would be good.
Also, please forget that I said this when the OMAP clock patches get
merged as I wish to maintain a double standard.
Regards,
Mike
> Kind regards
> Ulf Hansson
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-04 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 19:15 [PATCH] clk: ux500: fix bit error Linus Walleij
2012-11-27 22:56 ` Ulf Hansson
2012-12-04 19:31 ` Mike Turquette
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).