aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:11 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:11:11 +0000
commit312b15a3c89a66c20e08828512053e85bac0f499 (patch)
treebbfa60013cc96732f718c9b63d82d32aa18ca9b7
parentf39594d4998c1b4e7fb4de3a5d5936f5966499a8 (diff)
debug-move-led-around.patch
Light an LED in the dark crashing hell of dead resume... the problems come from Glamo it turns out Signed-off-by: Andy Green <andy@openmoko.com>
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c8
-rw-r--r--drivers/base/power/main.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 505ec6359c9..a55fd43ef6b 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -1733,6 +1733,14 @@ static void __init gta02_machine_init(void)
enable_irq_wake(GTA02_IRQ_WLAN_GPIO1);
}
+void DEBUG_LED(void)
+{
+// int *p = NULL;
+ neo1973_gpb_setpin(GTA02_GPIO_AUX_LED, 1);
+// printk(KERN_ERR"die %d\n", *p);
+}
+EXPORT_SYMBOL_GPL(DEBUG_LED);
+
MACHINE_START(NEO1973_GTA02, "GTA02")
.phys_io = S3C2410_PA_UART,
.io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 954d21dcfc4..067594c0381 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -529,6 +529,14 @@ static pm_message_t resume_event(pm_message_t sleep_state)
return PMSG_ON;
}
+static void
+suspend_device_dbg(struct device *dev, pm_message_t state, char *info)
+{
+ dev_err(dev, "%s%s%s\n", info, suspend_verb(state.event),
+ ((state.event == PM_EVENT_SUSPEND) && device_may_wakeup(dev)) ?
+ ", may wakeup" : "");
+}
+
/**
* suspend_device_noirq - Shut down one device (late suspend).
* @dev: Device.