+ input-core-driver-for-wm97xx-touchscreens-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     wm97xx-core: support pen down IRQ for non-continous reads
has been added to the -mm tree.  Its filename is
     input-core-driver-for-wm97xx-touchscreens-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: wm97xx-core: support pen down IRQ for non-continous reads
From: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

If the machine driver is not using continuous mode then the ts_reader
needs to be scheduled.

Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Cc: Liam Girdwood <liam.girdwood@xxxxxxxxxxxxxxxx>
Cc: Dmitry Torokhov <dtor@xxxxxxx>
Cc: Jiri Kosina <jkosina@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/input/touchscreen/wm97xx-core.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff -puN drivers/input/touchscreen/wm97xx-core.c~input-core-driver-for-wm97xx-touchscreens-fix drivers/input/touchscreen/wm97xx-core.c
--- a/drivers/input/touchscreen/wm97xx-core.c~input-core-driver-for-wm97xx-touchscreens-fix
+++ a/drivers/input/touchscreen/wm97xx-core.c
@@ -300,10 +300,11 @@ static void wm97xx_pen_irq_worker(struct
 		mutex_unlock(&wm->codec_mutex);
 	}
 
-	/* If a pen down function is not provided then the driver will
-	 * schedule its own reads.
+	/* If the system is not using continuous mode or it provides a
+	 * pen down operation then start scheduling polls.  Otherwise
+	 * the machine driver is responsible for scheduling reads.
 	 */
-	if (wm->mach_ops->acc_pen_down) {
+	if (!wm->mach_ops->acc_enabled || wm->mach_ops->acc_pen_down) {
 		/* Data is not availiable immediately after pen down. */
 		queue_delayed_work(wm->ts_workq, &wm->ts_reader, 1);
 	}
_

Patches currently in -mm which might be from broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx are

git-alsa-tiwai.patch
git-arm.patch
input-core-driver-for-wm97xx-touchscreens.patch
input-core-driver-for-wm97xx-touchscreens-fix.patch
input-add-chip-driver-for-wm9705-touchscreen.patch
input-add-chip-driver-for-wm9712-touchscreen.patch
input-add-chip-driver-for-wm9713-touchscreen.patch
input-driver-for-wm97xx-touchscreens-in-streaming-mode-on-mainstone.patch
input-build-system-and-maintainers-entry-for-wm97xx-touchscreen-drivers.patch
wm97xx-core-fix-race-in-pen-up-reporting.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux