* [PATCH] ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC
@ 2016-05-11 9:00 Boris Brezillon
2016-05-11 10:11 ` Nicolas Ferre
0 siblings, 1 reply; 3+ messages in thread
From: Boris Brezillon @ 2016-05-11 9:00 UTC (permalink / raw)
To: Nicolas Ferre, Jean-Christophe Plagniol-Villard,
Alexandre Belloni, arm
Cc: linux-arm-kernel, Richard Genoud, Boris Brezillon, stable
The memory range assigned to the PMC (Power Management Controller) was
not including the PMC_PCR register which are used to control peripheral
clocks.
This was working fine thanks to the page granularity of ioremap(), but
started to fail when we switched to syscon/regmap, because regmap is
making sure that all accesses are falling into the reserved range.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Richard Genoud <richard.genoud@gmail.com>
Tested-by: Richard Genoud <richard.genoud@gmail.com>
Fixes: 863a81c3be1d ("clk: at91: make use of syscon to share PMC registers in several drivers")
Cc: <stable@vger.kernel.org>
---
Hi Arnd,
This patch is fixing a regression reported by Richard. Since this
regression was introduced in 4.6-rc1 it would be great if you could
take it before 4.6 is released.
Thanks,
Boris
---
arch/arm/boot/dts/at91sam9x5.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
index 0827d59..cd0cd5f 100644
--- a/arch/arm/boot/dts/at91sam9x5.dtsi
+++ b/arch/arm/boot/dts/at91sam9x5.dtsi
@@ -106,7 +106,7 @@
pmc: pmc@fffffc00 {
compatible = "atmel,at91sam9x5-pmc", "syscon";
- reg = <0xfffffc00 0x100>;
+ reg = <0xfffffc00 0x200>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
interrupt-controller;
#address-cells = <1>;
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC
2016-05-11 9:00 [PATCH] ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC Boris Brezillon
@ 2016-05-11 10:11 ` Nicolas Ferre
2016-05-11 15:14 ` Nicolas Ferre
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Ferre @ 2016-05-11 10:11 UTC (permalink / raw)
To: Boris Brezillon, Alexandre Belloni, arm, Arnd Bergmann
Cc: Jean-Christophe Plagniol-Villard, linux-arm-kernel,
Richard Genoud, stable
Le 11/05/2016 11:00, Boris Brezillon a �crit :
> The memory range assigned to the PMC (Power Management Controller) was
> not including the PMC_PCR register which are used to control peripheral
> clocks.
>
> This was working fine thanks to the page granularity of ioremap(), but
> started to fail when we switched to syscon/regmap, because regmap is
> making sure that all accesses are falling into the reserved range.
>
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> Reported-by: Richard Genoud <richard.genoud@gmail.com>
> Tested-by: Richard Genoud <richard.genoud@gmail.com>
> Fixes: 863a81c3be1d ("clk: at91: make use of syscon to share PMC registers in several drivers")
> Cc: <stable@vger.kernel.org>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Thanks Boris!
> ---
> Hi Arnd,
>
> This patch is fixing a regression reported by Richard. Since this
> regression was introduced in 4.6-rc1 it would be great if you could
> take it before 4.6 is released.
Arnd, arm-soc guys,
I can build a Pull-Request instantly today, if you wish: just tell me if
you prefer.
Bye,
> ---
> arch/arm/boot/dts/at91sam9x5.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
> index 0827d59..cd0cd5f 100644
> --- a/arch/arm/boot/dts/at91sam9x5.dtsi
> +++ b/arch/arm/boot/dts/at91sam9x5.dtsi
> @@ -106,7 +106,7 @@
>
> pmc: pmc@fffffc00 {
> compatible = "atmel,at91sam9x5-pmc", "syscon";
> - reg = <0xfffffc00 0x100>;
> + reg = <0xfffffc00 0x200>;
> interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
> interrupt-controller;
> #address-cells = <1>;
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC
2016-05-11 10:11 ` Nicolas Ferre
@ 2016-05-11 15:14 ` Nicolas Ferre
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2016-05-11 15:14 UTC (permalink / raw)
To: arm, Arnd Bergmann
Cc: Boris Brezillon, Alexandre Belloni, Richard Genoud,
Jean-Christophe Plagniol-Villard, stable, linux-arm-kernel
Le 11/05/2016 12:11, Nicolas Ferre a �crit :
> Le 11/05/2016 11:00, Boris Brezillon a �crit :
>> The memory range assigned to the PMC (Power Management Controller) was
>> not including the PMC_PCR register which are used to control peripheral
>> clocks.
>>
>> This was working fine thanks to the page granularity of ioremap(), but
>> started to fail when we switched to syscon/regmap, because regmap is
>> making sure that all accesses are falling into the reserved range.
>>
>> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
>> Reported-by: Richard Genoud <richard.genoud@gmail.com>
>> Tested-by: Richard Genoud <richard.genoud@gmail.com>
>> Fixes: 863a81c3be1d ("clk: at91: make use of syscon to share PMC registers in several drivers")
>> Cc: <stable@vger.kernel.org>
>
> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
>
> Thanks Boris!
>
>
>> ---
>> Hi Arnd,
>>
>> This patch is fixing a regression reported by Richard. Since this
>> regression was introduced in 4.6-rc1 it would be great if you could
>> take it before 4.6 is released.
>
> Arnd, arm-soc guys,
>
> I can build a Pull-Request instantly today, if you wish: just tell me if
> you prefer.
Actually, I've just sent one so that we don't loose time:
"[GIT PULL] at91: fixes for 4.6 #2"
Bye,
>> ---
>> arch/arm/boot/dts/at91sam9x5.dtsi | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
>> index 0827d59..cd0cd5f 100644
>> --- a/arch/arm/boot/dts/at91sam9x5.dtsi
>> +++ b/arch/arm/boot/dts/at91sam9x5.dtsi
>> @@ -106,7 +106,7 @@
>>
>> pmc: pmc@fffffc00 {
>> compatible = "atmel,at91sam9x5-pmc", "syscon";
>> - reg = <0xfffffc00 0x100>;
>> + reg = <0xfffffc00 0x200>;
>> interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
>> interrupt-controller;
>> #address-cells = <1>;
>>
>
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-11 15:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-11 9:00 [PATCH] ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC Boris Brezillon
2016-05-11 10:11 ` Nicolas Ferre
2016-05-11 15:14 ` Nicolas Ferre
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).