add IXP4xx GPIOLIB support based on Chris' patch
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 1140-Fixup-hang-on-resume-caused-by-the-s3c2410-touch-scr.patch
1 From 38c2df2c01a3307c9bce68c744ae6d2b1717b8ec Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <zecke@openmoko.org>
3 Date: Fri, 25 Jul 2008 23:06:09 +0100
4 Subject: [PATCH] Fixup hang on resume caused by the s3c2410 touch screen driver
5
6 From dc6d335b467646d802a21ea6b925ee97e83e07be Mon Sep 17 00:00:00 2001
7 From: Holger Freyther <zecke@openmoko.org>
8 Date: Thu, 15 May 2008 01:16:23 +0200
9 Subject: [PATCH] Do not use msleep in the resume path of s3c2410_ts as it
10 might lockup
11
12 For some reason msleep might set the only task running into a suspended
13 state and no timer will ever wake it up. Use mdelay to avoid this. I was not
14 able to understand the reasoning of sleeping after enabling the clock. So we
15 might just remove the msleep/mdelay at all and be fine.
16
17 Signed-Off-By: Holger Freyther <zecke@openmoko.org>
18 ---
19 drivers/input/touchscreen/s3c2410_ts.c | 2 +-
20 1 files changed, 1 insertions(+), 1 deletions(-)
21
22 diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
23 index bc6ccc2..1251454 100644
24 --- a/drivers/input/touchscreen/s3c2410_ts.c
25 +++ b/drivers/input/touchscreen/s3c2410_ts.c
26 @@ -355,7 +355,7 @@ static int s3c2410ts_resume(struct platform_device *pdev)
27 ( struct s3c2410_ts_mach_info *)pdev->dev.platform_data;
28
29 clk_enable(adc_clock);
30 - msleep(1);
31 + mdelay(1);
32
33 enable_irq(IRQ_ADC);
34 enable_irq(IRQ_TC);
35 --
36 1.5.6.3
37
This page took 0.046396 seconds and 5 git commands to generate.