SUPERH platform development
 help / color / mirror / Atom feed
* [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init()
@ 2014-03-17 11:15 Ben Dooks
  2014-03-19 16:10 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ben Dooks @ 2014-03-17 11:15 UTC (permalink / raw)
  To: linux-sh

Ensure pm_runtime is initialised.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/mach-shmobile/setup-r8a7790.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index c4616f0..8424cb4 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -305,6 +305,7 @@ void __init r8a7790_add_dt_devices(void)
 
 void __init r8a7790_add_standard_devices(void)
 {
+	sh_pm_runtime_init();
 	r8a7790_add_dt_devices();
 	r8a7790_register_irqc(0);
 	r8a7790_register_thermal();
-- 
1.9.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init()
  2014-03-17 11:15 [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init() Ben Dooks
@ 2014-03-19 16:10 ` Geert Uytterhoeven
  2014-03-19 16:15 ` Ben Dooks
  2014-03-19 16:16 ` Geert Uytterhoeven
  2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2014-03-19 16:10 UTC (permalink / raw)
  To: linux-sh

Hi Ben,

On Mon, Mar 17, 2014 at 12:15 PM, Ben Dooks <ben.dooks@codethink.co.uk> wrote:
> Ensure pm_runtime is initialised.
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
>  arch/arm/mach-shmobile/setup-r8a7790.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
> index c4616f0..8424cb4 100644
> --- a/arch/arm/mach-shmobile/setup-r8a7790.c
> +++ b/arch/arm/mach-shmobile/setup-r8a7790.c
> @@ -305,6 +305,7 @@ void __init r8a7790_add_dt_devices(void)
>
>  void __init r8a7790_add_standard_devices(void)
>  {
> +       sh_pm_runtime_init();
>         r8a7790_add_dt_devices();
>         r8a7790_register_irqc(0);
>         r8a7790_register_thermal();

Are you sure this is the right function?
r8a7790_add_standard_devices() is only called from board-lager.c,
not from board-lager-reference.c.

I'd expect it to be added to r8a7790_add_dt_devices().

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init()
  2014-03-17 11:15 [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init() Ben Dooks
  2014-03-19 16:10 ` Geert Uytterhoeven
@ 2014-03-19 16:15 ` Ben Dooks
  2014-03-19 16:16 ` Geert Uytterhoeven
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Dooks @ 2014-03-19 16:15 UTC (permalink / raw)
  To: linux-sh

On 19/03/14 17:10, Geert Uytterhoeven wrote:
> Hi Ben,
>
> On Mon, Mar 17, 2014 at 12:15 PM, Ben Dooks <ben.dooks@codethink.co.uk> wrote:
>> Ensure pm_runtime is initialised.
>>
>> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
>> ---
>>   arch/arm/mach-shmobile/setup-r8a7790.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
>> index c4616f0..8424cb4 100644
>> --- a/arch/arm/mach-shmobile/setup-r8a7790.c
>> +++ b/arch/arm/mach-shmobile/setup-r8a7790.c
>> @@ -305,6 +305,7 @@ void __init r8a7790_add_dt_devices(void)
>>
>>   void __init r8a7790_add_standard_devices(void)
>>   {
>> +       sh_pm_runtime_init();
>>          r8a7790_add_dt_devices();
>>          r8a7790_register_irqc(0);
>>          r8a7790_register_thermal();
>
> Are you sure this is the right function?
> r8a7790_add_standard_devices() is only called from board-lager.c,
> not from board-lager-reference.c.
>
> I'd expect it to be added to r8a7790_add_dt_devices().

Thanks, I only put this out as an RFC, not had time to do a full
test yet.


-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init()
  2014-03-17 11:15 [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init() Ben Dooks
  2014-03-19 16:10 ` Geert Uytterhoeven
  2014-03-19 16:15 ` Ben Dooks
@ 2014-03-19 16:16 ` Geert Uytterhoeven
  2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2014-03-19 16:16 UTC (permalink / raw)
  To: linux-sh

On Wed, Mar 19, 2014 at 5:15 PM, Ben Dooks <ben.dooks@codethink.co.uk> wrote:
>>> --- a/arch/arm/mach-shmobile/setup-r8a7790.c
>>> +++ b/arch/arm/mach-shmobile/setup-r8a7790.c
>>> @@ -305,6 +305,7 @@ void __init r8a7790_add_dt_devices(void)
>>>
>>>   void __init r8a7790_add_standard_devices(void)
>>>   {
>>> +       sh_pm_runtime_init();
>>>          r8a7790_add_dt_devices();
>>>          r8a7790_register_irqc(0);
>>>          r8a7790_register_thermal();
>>
>>
>> Are you sure this is the right function?
>> r8a7790_add_standard_devices() is only called from board-lager.c,
>> not from board-lager-reference.c.
>>
>> I'd expect it to be added to r8a7790_add_dt_devices().
>
> Thanks, I only put this out as an RFC, not had time to do a full
> test yet.

IC.

I'm reworking the series to apply to all shmobile SoCs.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-19 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 11:15 [RFC 4/6] ARM: shmobile: r8a7790: call sh_pm_runtime_init() Ben Dooks
2014-03-19 16:10 ` Geert Uytterhoeven
2014-03-19 16:15 ` Ben Dooks
2014-03-19 16:16 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox