2008-12-12 19:58:53 +08:00
|
|
|
From 7b7d70785f1b3c1421d56ee8140578fea3b90f9c Mon Sep 17 00:00:00 2001
|
2008-12-12 08:02:36 +08:00
|
|
|
From: Holger Freyther <zecke@openmoko.org>
|
2008-12-12 19:58:53 +08:00
|
|
|
Date: Thu, 15 May 2008 21:47:56 +0100
|
2008-12-12 08:02:36 +08:00
|
|
|
Subject: [PATCH] Fixup hang on resume caused by the s3c2410 touch screen driver
|
|
|
|
|
|
|
|
From dc6d335b467646d802a21ea6b925ee97e83e07be Mon Sep 17 00:00:00 2001
|
|
|
|
From: Holger Freyther <zecke@openmoko.org>
|
|
|
|
Date: Thu, 15 May 2008 01:16:23 +0200
|
|
|
|
Subject: [PATCH] Do not use msleep in the resume path of s3c2410_ts as it
|
|
|
|
might lockup
|
|
|
|
|
|
|
|
For some reason msleep might set the only task running into a suspended
|
|
|
|
state and no timer will ever wake it up. Use mdelay to avoid this. I was not
|
|
|
|
able to understand the reasoning of sleeping after enabling the clock. So we
|
|
|
|
might just remove the msleep/mdelay at all and be fine.
|
|
|
|
|
|
|
|
Signed-Off-By: Holger Freyther <zecke@openmoko.org>
|
|
|
|
---
|
|
|
|
drivers/input/touchscreen/s3c2410_ts.c | 2 +-
|
|
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
|
2008-12-12 19:58:53 +08:00
|
|
|
index 68071c2..6d395ca 100644
|
2008-12-12 08:02:36 +08:00
|
|
|
--- a/drivers/input/touchscreen/s3c2410_ts.c
|
|
|
|
+++ b/drivers/input/touchscreen/s3c2410_ts.c
|
2008-12-12 19:58:53 +08:00
|
|
|
@@ -356,7 +356,7 @@ static int s3c2410ts_resume(struct platform_device *pdev)
|
2008-12-12 08:02:36 +08:00
|
|
|
( struct s3c2410_ts_mach_info *)pdev->dev.platform_data;
|
|
|
|
|
|
|
|
clk_enable(adc_clock);
|
|
|
|
- msleep(1);
|
|
|
|
+ mdelay(1);
|
|
|
|
|
|
|
|
enable_irq(IRQ_ADC);
|
|
|
|
enable_irq(IRQ_TC);
|
|
|
|
--
|
2008-12-12 19:58:53 +08:00
|
|
|
1.5.6.5
|
2008-12-12 08:02:36 +08:00
|
|
|
|