aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:08 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:11:08 +0000
commit92949dafeccb965be53596c3b4b34df94472bbdd (patch)
treefb52c780f781430488a4c398e750ea26a7fa9d39 /drivers
parentc95790dd1ffef578b3e31d835e1352a863ce181a (diff)
debug-aux-key-probe-resume-death.patch
Nasty temporary patch that is VERY useful, basically if you hit AUX key during suspend time, it will force an OOPS, which due to another debug patch forces a spew on serial console showing dmesg to date and the oops. Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/keyboard/neo1973kbd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/keyboard/neo1973kbd.c b/drivers/input/keyboard/neo1973kbd.c
index dfc0063da69..a6a213b309e 100644
--- a/drivers/input/keyboard/neo1973kbd.c
+++ b/drivers/input/keyboard/neo1973kbd.c
@@ -26,6 +26,8 @@
#include <mach/gpio.h>
#include <asm/mach-types.h>
+extern int global_inside_suspend;
+
struct neo1973kbd {
struct input_dev *input;
struct device *cdev;
@@ -45,6 +47,10 @@ static irqreturn_t neo1973kbd_aux_irq(int irq, void *dev_id)
{
struct neo1973kbd *neo1973kbd_data = dev_id;
int key_pressed = !gpio_get_value(irq_to_gpio(irq));
+ int *p = NULL;
+
+ if (global_inside_suspend)
+ printk("death %d\n", *p);
/* GTA02 has inverted sense level compared to GTA01 */
if (machine_is_neo1973_gta02())