RE: [PATCH] ARM: at91: pm: fix SRAM allocation

2015-03-02 Thread Yang, Wenyou
.org > Subject: Re: [PATCH] ARM: at91: pm: fix SRAM allocation > > On 02/03/2015 at 18:50:27 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > > > > > On Mar 2, 2015, at 6:42 PM, Alexandre Belloni electrons.com> wrote: > > > > > > On some platforms, the

Re: [PATCH] ARM: at91: pm: fix SRAM allocation

2015-03-02 Thread Alexandre Belloni
On 03/03/2015 at 00:14:57 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > >> pdev not initialised at NULL > > > > Indeed, I'll fix that. It doesn't really matter for now as all the > > at91 DT have at least one sram node. > except if we drop it or when we add a new SoC and forget it > Sure, I

Re: [PATCH] ARM: at91: pm: fix SRAM allocation

2015-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 2, 2015, at 6:57 PM, Alexandre Belloni > wrote: > > On 02/03/2015 at 18:50:27 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : >> >>> On Mar 2, 2015, at 6:42 PM, Alexandre Belloni >>> wrote: >>> >>> On some platforms, there are multiple SRAM nodes defined in the device tree >>> but

Re: [PATCH] ARM: at91: pm: fix SRAM allocation

2015-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 2, 2015, at 6:42 PM, Alexandre Belloni > wrote: > > On some platforms, there are multiple SRAM nodes defined in the device tree > but > some of them are disabled, leading to allocation failure. Try to find the > first > enabled SRAM node and allocate from it. > > Signed-off-by: Alex

Re: [PATCH] ARM: at91: pm: fix SRAM allocation

2015-03-02 Thread Alexandre Belloni
On 02/03/2015 at 18:50:27 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > > > On Mar 2, 2015, at 6:42 PM, Alexandre Belloni > > wrote: > > > > On some platforms, there are multiple SRAM nodes defined in the device tree > > but > > some of them are disabled, leading to allocation failure. Try

[PATCH] ARM: at91: pm: fix SRAM allocation

2015-03-02 Thread Alexandre Belloni
On some platforms, there are multiple SRAM nodes defined in the device tree but some of them are disabled, leading to allocation failure. Try to find the first enabled SRAM node and allocate from it. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 20 +--- 1 file c