Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752705AbaKQLlP (ORCPT ); Mon, 17 Nov 2014 06:41:15 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:36142 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104AbaKQLlM (ORCPT ); Mon, 17 Nov 2014 06:41:12 -0500 Message-ID: <5469DE81.9030009@ti.com> Date: Mon, 17 Nov 2014 17:09:45 +0530 From: Vignesh R User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Johannes Pointner CC: Richard Cochran , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Benoit Cousson , Tony Lindgren , Russell King , Jonathan Cameron , Dmitry Torokhov , , Lars-Peter Clausen , Samuel Ortiz , Jan Kardell , linux-iio , Sebastian Andrzej Siewior , , , Felipe Balbi , Paul Gortmaker , Peter Meerwald , Hartmut Knaack , , Lee Jones , , Brad Griffis Subject: Re: [PATCH 0/4] Touchscreen performance related fixes References: <1414408111-2631-1-git-send-email-vigneshr@ti.com> <20141103180920.GA20779@localhost.localdomain> <545B2651.4090905@ti.com> <5464A2B5.3020207@ti.com> In-Reply-To: <5464A2B5.3020207@ti.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thursday 13 November 2014 05:53 PM, Vignesh R wrote: > Hi, > > On Wednesday 12 November 2014 06:30 PM, Johannes Pointner wrote: >> Hello Vignesh, >> >> I tried your patch version 3 on a customized board and had some >> behavior I couldn't explain. >> If I only use the touchscreen it works fine but if I also read values >> from the ADCs then I get a lot of pen_up events even if I am still >> touching the screen. >> For the test I read via >> # cat /sys/bus/iio/devices/iio\:device0/in_voltage5_raw >> values from the ADC in an busy loop as you explained in an email >> before. Did you also experience such behavior or do you know what >> causes it? > > Thanks for testing. I was able to fix this issue. Will post version 4 > shortly. > Were you able to test the v4 patch series on your board? Is the issue fixed? > Regards > Vignesh > >> >> Without the patches the touchscreen works fine during the iio test. >> >> Thanks, >> Hannes >> >> 2014-11-06 8:42 GMT+01:00 Vignesh R : >>> >>> >>> On Monday 03 November 2014 11:39 PM, Richard Cochran wrote: >>>> On Mon, Oct 27, 2014 at 04:38:27PM +0530, Vignesh R wrote: >>>>> This series of patches fix TSC defects related to lag in touchscreen >>>>> performance and cursor jump at touch release. The lag was result of >>>>> udelay in TSC interrupt handler. Cursor jump due to false pen-up event. >>>>> The patches implement Advisory 1.0.31 in silicon errata of am335x-evm >>>>> to avoid false pen-up events and remove udelay. >>>> >>>> That advisory has two workarounds. You have chosen the second one? >>> >>> Work around one. Hence 5 wire design is not broken. >>> >>>> >>>> The text of the second workaround says it only works on 4 wire setups, >>>> so I wonder how 5 wire designs will be affected. >>>> >>>>> The advisory says to use >>>>> steps 1 to 4 for ADC and 5 to 16 for TSC (assuming 4 wire TSC and 4 channel >>>>> ADC). >>>> >>>> No, it doesn't say that. (sprz360f.pdf) >>> >>> The pen up event detection happens immediately after charge step. Hence, >>> interchanging ADC and TSC steps makes sure that sampling of touch >>> co-ordinates and pen events are done one after the other. This >>> workaround was suggested by internal hardware folks. Earlier ADC steps >>> intervened between sampling of co-ordinates and pen event detection >>> which is not desirable. >>> >>>> >>>>> Further the X co-ordinate must be the last one to be sampled just >>>>> before charge step. The first two patches implement the required changes. >>>> >>>> FWIW, I implemented the first workaround and removed the udelay not >>>> too long ago. Like Sebastian, I saw the TSC unit hang after about >>>> 50000 interrupts when running with the workaround. >>>> >>>> Did you test you patch for very long? >>> >>> Yes, I tested for about 200000 interrupts and I didn't see any hang. >>> This patch series does not just implement workaround but also does some >>> minor changes, such as interchanging ADC and TSC steps etc, which makes >>> TSC driver more robust. Let me know if you encounter any issues with my >>> patch series. >>> >>> Regards >>> Vignesh >>> >>>> >>>> Thanks, >>>> Richard >>>> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/