aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1283-gta02-accel-isr-fix-more.patch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1283-gta02-accel-isr-fix-more.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1283-gta02-accel-isr-fix-more.patch.patch101
1 files changed, 101 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1283-gta02-accel-isr-fix-more.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1283-gta02-accel-isr-fix-more.patch.patch
new file mode 100644
index 0000000000..f52e694fd8
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1283-gta02-accel-isr-fix-more.patch.patch
@@ -0,0 +1,101 @@
+From a1e97c611253511ffc2d8c45e3e6d6894fa03fa3 Mon Sep 17 00:00:00 2001
+From: Andy Green <andy@openmoko.com>
+Date: Sat, 23 Aug 2008 11:01:50 +0100
+Subject: [PATCH] gta02-accel-isr-fix-more.patch
+
+Fix all of the mismatches Andrzej put us on to.
+
+Found-by: Andrzej Zaborowski <balrogg@gmail.com>
+Signed-off-by: Andy Green <andy@openmoko.com>
+---
+ drivers/input/misc/lis302dl.c | 18 +++++++++---------
+ 1 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/drivers/input/misc/lis302dl.c b/drivers/input/misc/lis302dl.c
+index 7df31af..b01ca04 100644
+--- a/drivers/input/misc/lis302dl.c
++++ b/drivers/input/misc/lis302dl.c
+@@ -230,7 +230,7 @@ static ssize_t lis302dl_dump(struct device *dev, struct device_attribute *attr,
+ char *end = buf;
+ unsigned long flags;
+
+- local_save_flags(flags);
++ local_irq_save(flags);
+
+ for (n = 0; n < sizeof(reg); n++)
+ reg[n] = reg_read(lis, n);
+@@ -312,7 +312,7 @@ static ssize_t set_freefall_common(int which, struct device *dev,
+ /* Parse the input */
+ if (strcmp(buf, "0\n") == 0) {
+ /* Turn off the interrupt */
+- local_save_flags(flags);
++ local_irq_save(flags);
+ if (lis->flags & LIS302DL_F_IRQ_WAKE)
+ disable_irq_wake(lis->spi_dev->irq);
+ lis302dl_int_mode(lis->spi_dev, which,
+@@ -354,7 +354,7 @@ static ssize_t set_freefall_common(int which, struct device *dev,
+ z_hi = z > 0 ? LIS302DL_FFWUCFG_ZHIE : 0;
+
+ /* Setup the configuration registers */
+- local_save_flags(flags);
++ local_irq_save(flags);
+ reg_write(lis, r_cfg, 0); /* First zero to get to a known state */
+ reg_write(lis, r_cfg,
+ (and_events ? LIS302DL_FFWUCFG_AOI : 0) |
+@@ -478,7 +478,7 @@ static int lis302dl_input_open(struct input_dev *inp)
+ LIS302DL_CTRL1_Yen | LIS302DL_CTRL1_Zen;
+ unsigned long flags;
+
+- local_save_flags(flags);
++ local_irq_save(flags);
+ /* make sure we're powered up and generate data ready */
+ reg_set_bit_mask(lis, LIS302DL_REG_CTRL1, ctrl1, ctrl1);
+ local_irq_restore(flags);
+@@ -499,7 +499,7 @@ static void lis302dl_input_close(struct input_dev *inp)
+ LIS302DL_CTRL1_Zen;
+ unsigned long flags;
+
+- local_save_flags(flags);
++ local_irq_save(flags);
+
+ /* since the input core already serializes access and makes sure we
+ * only see close() for the close of the last user, we can safely
+@@ -546,7 +546,7 @@ static int __devinit lis302dl_probe(struct spi_device *spi)
+ if (!lis)
+ return -ENOMEM;
+
+- local_save_flags(flags);
++ local_irq_save(flags);
+
+ mutex_init(&lis->lock);
+ lis->spi_dev = spi;
+@@ -675,7 +675,7 @@ static int __devexit lis302dl_remove(struct spi_device *spi)
+ unsigned long flags;
+
+ /* Reset and power down the device */
+- local_save_flags(flags);
++ local_irq_save(flags);
+ reg_write(lis, LIS302DL_REG_CTRL3, 0x00);
+ reg_write(lis, LIS302DL_REG_CTRL2, 0x00);
+ reg_write(lis, LIS302DL_REG_CTRL1, 0x00);
+@@ -706,7 +706,7 @@ static int lis302dl_suspend(struct spi_device *spi, pm_message_t state)
+ return 0;
+
+ disable_irq(lis->spi_dev->irq);
+- local_save_flags(flags);
++ local_irq_save(flags);
+
+ /*
+ * When we share SPI over multiple sensors, there is a race here
+@@ -768,7 +768,7 @@ static int lis302dl_resume(struct spi_device *spi)
+ lis->flags & LIS302DL_F_WUP_CLICK)
+ return 0;
+
+- local_save_flags(flags);
++ local_irq_save(flags);
+
+ /* get our IO to the device back in operational states */
+ (lis->pdata->lis302dl_suspend_io)(lis, 1);
+--
+1.5.6.5
+