Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Jan 15, 2015, at 4:21 AM, Boris Brezillon > wrote: > > Hi Jean-Christophe, > > On Wed, 14 Jan 2015 20:14:12 +0100 > Jean-Christophe PLAGNIOL-VILLARD wrote: > >> On 22:23 Mon 12 Jan , Alexandre Belloni wrote: >>> Store SoC differences in a struct to remove cpu_is_* usage. >>> >>> Si

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Arnd Bergmann
On Wednesday 14 January 2015 22:07:34 Alexandre Belloni wrote: > Hi, > > (Adding Arnd in Cc) > > On 15/01/2015 at 04:37:14 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > > >>> - /* AT91RM9200 SDRAM low-power mode cannot be used with > > >>> self-refresh. */ > > >>> - if (cpu_is_at

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Alexandre Belloni
Hi, (Adding Arnd in Cc) On 15/01/2015 at 04:37:14 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > >>> - /* AT91RM9200 SDRAM low-power mode cannot be used with self-refresh. */ > >>> - if (cpu_is_at91rm9200()) > >>> + at91_pm_data.memctrl = AT91_MEMCTRL_SDRAMC; > >>> + > >>> + if (of_machine_is_

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Boris Brezillon
Hi Jean-Christophe, On Wed, 14 Jan 2015 20:14:12 +0100 Jean-Christophe PLAGNIOL-VILLARD wrote: > On 22:23 Mon 12 Jan , Alexandre Belloni wrote: > > Store SoC differences in a struct to remove cpu_is_* usage. > > > > Signed-off-by: Alexandre Belloni > > --- > > arch/arm/mach-at91/pm.c | 54

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 22:23 Mon 12 Jan , Alexandre Belloni wrote: > Store SoC differences in a struct to remove cpu_is_* usage. > > Signed-off-by: Alexandre Belloni > --- > arch/arm/mach-at91/pm.c | 54 > ++--- > 1 file changed, 33 insertions(+), 21 deletions(-) >