linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Javier Martinez Canillas <javier@dowhile0.org>
Cc: Henrik Rydberg <rydberg@euromail.se>,
	Mohan Pallaka <mpallaka@codeaurora.org>,
	Kevin McNeely <kev@cypress.com>,
	Shubhrajyoti Datta <omaplinuxkernel@gmail.com>,
	linux-input@vger.kernel.org
Subject: Re: [PATCH v10 1/3] Input: cyttsp - Cypress TTSP capacitive multi-touch screen support
Date: Fri, 27 Jan 2012 13:26:45 -0800	[thread overview]
Message-ID: <3249126.MSECh6D9S6@dtor-d630.eng.vmware.com> (raw)
In-Reply-To: <CABxcv=n8kFJiL01WEVdFat5Y=W9xQeG6_2oNV=_45UUFr+0gtw@mail.gmail.com>

On Friday, January 27, 2012 10:01:22 PM Javier Martinez Canillas wrote:
> On Fri, Jan 27, 2012 at 7:18 PM, Dmitry Torokhov
> 
> <dmitry.torokhov@gmail.com> wrote:
> > On Fri, Jan 27, 2012 at 04:57:12PM +0100, Javier Martinez Canillas wrote:
> >> On Fri, Jan 27, 2012 at 9:18 AM, Dmitry Torokhov
> >> 
> >> <dmitry.torokhov@gmail.com> wrote:
> >> > On Thu, Jan 26, 2012 at 01:12:50AM +0100, Javier Martinez Canillas 
wrote:
> >> >> On Tue, Jan 24, 2012 at 8:54 AM, Dmitry Torokhov
> >> >> 
> >> >> <dmitry.torokhov@gmail.com> wrote:
> >> >> > On Tue, Jan 24, 2012 at 08:26:39AM +0100, Javier Martinez Canillas 
wrote:
> >> >> >> On Fri, Jan 20, 2012 at 1:57 AM, Javier Martinez Canillas
> >> >> >> 
> >> >> >> <javier@dowhile0.org> wrote:
> >> >> >> > Cypress TrueTouch(tm) Standard Product controllers are
> >> >> >> > found in
> >> >> >> > a wide range of embedded devices. This driver add
> >> >> >> > support for a
> >> >> >> > variety of TTSP controllers.
> >> >> >> > 
> >> >> >> > Since the hardware is capable of tracking identifiable
> >> >> >> > contacts, multi-touch protocol type B (stateful) is
> >> >> >> > used to report contact information.
> >> >> >> > 
> >> >> >> > The driver is composed of a core driver that process
> >> >> >> > the data sent by the contacts and a set of bus
> >> >> >> > specific interface modules. This patch adds the base
> >> >> >> > core TTSP driver.
> >> >> >> > 
> >> >> >> > Signed-off-by: Javier Martinez Canillas
> >> >> >> > <javier@dowhile0.org>
> >> >> >> > ---
> >> >> >> > 
> >> >> >> > Changes for v10: Fix issues called out by Dmitry
> >> >> >> > Torokhov
> >> >> >> >        - Remove use_sleep and put device to sleep
> >> >> >> > unconditionally on suspend - Cleanup
> >> >> >> > cyttsp_power_on() and remove cyttsp_bl_app_valid()
> >> >> >> > function
> >> >> >> > 
> >> >> >> >  drivers/input/touchscreen/Kconfig       |   31 ++
> >> >> >> >  drivers/input/touchscreen/Makefile      |    3 +
> >> >> >> >  drivers/input/touchscreen/cyttsp_core.c |  682
> >> >> >> > +++++++++++++++++++++++++++++++
> >> >> >> > drivers/input/touchscreen/cyttsp_core.h |  141
> >> >> >> > +++++++ include/linux/input/cyttsp.h            |  
> >> >> >> > 68 +++
> >> >> >> >  5 files changed, 925 insertions(+), 0 deletions(-)
> >> >> >> 
> >> >> >> Hello Dmitry,
> >> >> >> 
> >> >> >> Any comments on this version?
> >> >> > 
> >> >> > Looking at it... If you do not hear from me by Wednesday
> >> >> > please ping me again.
> >> >> > 
> >> >> > Thanks.
> >> >> > 
> >> >> > --
> >> >> > Dmitry
> >> >> 
> >> >> ping :)
> >> > 
> >> > Is it still Wednesday by any chance? ;)
> >> 
> >> Hi Dmitry,
> >> 
> >> Thanks for the review and the cleanup patch!
> >> 
> >> > Anyway, the driver looks pretty good, still below are some changes
> >> > that I'd like to get in as well:
> >> > 
> >> > - do not return EAGAIN when operation times out, EIO I believe
> >> > suits
> >> >  better.
> >> > - introduce ttsp_send_command() to replace host of custom
> >> > functions.
> >> > - reduce numver of states to 3 - IDLE, ACTIVE and BL mode.
> >> >  Suspended/full power is already covered by "suspended" attribute.
> >> > - streamline some functions.
> >> 
> >> Seems that your patch handlers all these issues.
> >> 
> >> > Please see the FIXME comment in cyttsp_enable() - is there a
> >> > generic way to wake up the device, similarly to the way we put it
> >> > to sleep?>> 
> >> I guess that CY_OPERATE_MODE works but I have to try it since I don't
> >> have the hw data-sheet.
> >> 
> >> > Please tell me if the device still works with this patch.
> >> > 
> >> > Thanks!
> >> > 
> >> > --
> >> > Dmitry
> >> 
> >> Strange enough, it doesn't apply cleanly on my tree...
> >> 
> >> with patch -p1 < your_patch
> >> 
> >> It should since only the files for this driver are modified and I've
> >> only applied the v10 patches I sent to you.
> >> Anyway I will manually do the changes, try it and resend to you.
> > 
> > Hmm, not sure why it gives you trouble, I tried not to change anything
> > when applying your v10 patches except for folding them all together.
> > 
> > I am attaching the version of the driver I've used as a base - maybe it
> > will save you some time instead of applying the changes manually.
> > 
> > Also, could you please send changes needed to make my patch work as
> > incremental patch so that I can apply on top of mime locally and fold
> > all 3 together? It will be easier to see what exactly changed.
> > 
> > Thanks!
> > 
> > --
> > Dmitry
> 
> Hi Dmitry,
> 
> Using that merged patch as a base your patch applies cleanly (not sure
> what happened with my branch)
> 
> Sadly the driver is not working with your modifications.

I was afraid it could happen - hazards of chaging the code without the way of 
testing it...  I'll try to double check and see what I might have done wrong. 
What device did you test - I2C or SPI? Or do they both fail?

> I'll make it
> work changing as less as possible what was in your patch. Only to make
> the device work again and will send you as an incremental patch as you
> suggested.

Thank you for your patience with me.

> 
> Just to be clear, do you want me to send as an incremental patch of my
> series (v10) or as an incremental patch of your last patch?
> 

Incremental to mine please - so in your working branch you should have the 
original change + my patch as a separate commit + your commit fixing my mess.

-- 
Dmitry

  reply	other threads:[~2012-01-27 21:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20  0:57 [PATCH v10 1/3] Input: cyttsp - Cypress TTSP capacitive multi-touch screen support Javier Martinez Canillas
2012-01-20  0:57 ` [PATCH v10 2/3] Input: cyttsp - add support for Cypress TTSP touchscreen I2C bus interface Javier Martinez Canillas
2012-01-20  0:57 ` [PATCH v10 3/3] Input: cyttsp - add support for Cypress TTSP touchscreen SPI " Javier Martinez Canillas
2012-01-24  7:26 ` [PATCH v10 1/3] Input: cyttsp - Cypress TTSP capacitive multi-touch screen support Javier Martinez Canillas
2012-01-24  7:54   ` Dmitry Torokhov
2012-01-24  8:09     ` Javier Martinez Canillas
2012-01-26  0:12     ` Javier Martinez Canillas
2012-01-27  8:18       ` Dmitry Torokhov
2012-01-27 15:57         ` Javier Martinez Canillas
2012-01-27 18:18           ` Dmitry Torokhov
2012-01-27 21:01             ` Javier Martinez Canillas
2012-01-27 21:26               ` Dmitry Torokhov [this message]
2012-01-29  6:08                 ` Javier Martinez Canillas
2012-01-24  9:26   ` Henrik Rydberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3249126.MSECh6D9S6@dtor-d630.eng.vmware.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=javier@dowhile0.org \
    --cc=kev@cypress.com \
    --cc=linux-input@vger.kernel.org \
    --cc=mpallaka@codeaurora.org \
    --cc=omaplinuxkernel@gmail.com \
    --cc=rydberg@euromail.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).