Skip to contentSkip to conversation

ARM: shmobile: Use ->init_late() on Lager

PATCH Superseded Magnus Damm 2 participants 3 messages Nov 13, 2013 – Nov 19, 2013

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: shmobile: Use ->init_late() on Lager

From: Magnus Damm <[email protected]>

Hook in shmobile_init_late() on Lager. This enables some PM related things like CPUIdle and Suspend-to-RAM.

With this patch applied it is possible to use Suspend-to-RAM:

# echo enabled > /sys/class/tty/ttySC6/power/wakeup
# echo mem > /sys/power/state 
(wake by sending a character on the serial console)

---

 arch/arm/mach-shmobile/board-lager-reference.c |    1 +
 arch/arm/mach-shmobile/board-lager.c           |    1 +
 2 files changed, 2 insertions(+)
arch/arm/mach-shmobile/board-lager-reference.c +1 -0
@@ -41,5 +41,6 @@ DT_MACHINE_START(LAGER_DT, "lager")
 	.init_early	= r8a7790_init_early,
 	.init_time	= rcar_gen2_timer_init,
 	.init_machine	= lager_add_standard_devices,
+	.init_late	= shmobile_init_late,
 	.dt_compat	= lager_boards_compat_dt,
 MACHINE_END
arch/arm/mach-shmobile/board-lager.c +1 -0
@@ -259,5 +259,6 @@ DT_MACHINE_START(LAGER_DT, "lager")
 	.init_early	= r8a7790_init_early,
 	.init_time	= rcar_gen2_timer_init,
 	.init_machine	= lager_init,
+	.init_late	= shmobile_init_late,
 	.dt_compat	= lager_boards_compat_dt,
 MACHINE_END
#1 lore raw

PATCH 1/1 ARM: shmobile: Use ->init_late() on Lager

Quoted 11 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Hook in shmobile_init_late() on Lager. This enables some PM related things like CPUIdle and Suspend-to-RAM.

With this patch applied it is possible to use Suspend-to-RAM:

# echo enabled > /sys/class/tty/ttySC6/power/wakeup
# echo mem > /sys/power/state 
(wake by sending a character on the serial console)

Thanks, I will queue this up.

#2 lore raw

PATCH 1/1 ARM: shmobile: Use ->init_late() on Lager

Quoted 6 lines · Simon Horman
Quoted 5 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Hook in shmobile_init_late() on Lager. This enables some PM related things like CPUIdle and Suspend-to-RAM.

Quoted 8 lines
Quoted 6 lines

With this patch applied it is possible to use Suspend-to-RAM:

# echo enabled > /sys/class/tty/ttySC6/power/wakeup
# echo mem > /sys/power/state 
(wake by sending a character on the serial console)

Thanks, I will queue this up.

Hi Magnus,

it seems that this patch needs the following so that shmobile_init_late is defined. I am dropping this patch for now.

arch/arm/mach-shmobile/board-lager-reference.c +1 -0
index ac01118..51a3bcc 100644
@@ -20,6 +20,7 @@
 
 #include <linux/init.h>
 #include <linux/of_platform.h>
+#include <mach/common.h>
 #include <mach/rcar-gen2.h>
 #include <mach/r8a7790.h>
 #include <asm/mach/arch.h>