linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: linux-input@vger.kernel.org, support.opensource@diasemi.com,
	kernel@pengutronix.de
Subject: Re: [PATCH v2] Input: da9052_tsi: remove unnecessary worker
Date: Fri, 6 Feb 2015 15:24:48 -0800	[thread overview]
Message-ID: <20150206232448.GC29225@dtor-ws> (raw)
In-Reply-To: <1423220748-21778-1-git-send-email-m.grzeschik@pengutronix.de>

On Fri, Feb 06, 2015 at 12:05:48PM +0100, Michael Grzeschik wrote:
> With the datardy irq we get the information if the
> pen got pulled from the screen. This patch changes
> the irq by checking this condition every time instead
> of triggering the worker.
> 
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
> v1 -> v2: - removed adc_on variable
> 	  - added locking for irq switch
> 	  - event reporting in ts_read and irq switchover in datardy_irq
>  drivers/input/touchscreen/da9052_tsi.c | 119 +++++++++++++++++----------------
>  1 file changed, 62 insertions(+), 57 deletions(-)
> 
> diff --git a/drivers/input/touchscreen/da9052_tsi.c b/drivers/input/touchscreen/da9052_tsi.c
> index 5a013bb..c28cfee 100644
> --- a/drivers/input/touchscreen/da9052_tsi.c
> +++ b/drivers/input/touchscreen/da9052_tsi.c
> @@ -22,19 +22,24 @@
>  
>  #define TSI_PEN_DOWN_STATUS 0x40
>  
> +#define TSI_PEN_UP		1
> +
>  struct da9052_tsi {
>  	struct da9052 *da9052;
>  	struct input_dev *dev;
> -	struct delayed_work ts_pen_work;
>  	struct mutex mutex;
> +	spinlock_t *lock;

I am gonna go out on a limb and say that you did not test it.

Thanks.

-- 
Dmitry

  reply	other threads:[~2015-02-06 23:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-18 15:36 [PATCH] Input: da9052_tsi: remove unnecessary worker Michael Grzeschik
2015-01-20  7:21 ` Dmitry Torokhov
2015-01-20 11:04   ` Michael Grzeschik
2015-02-06 11:05 ` [PATCH v2] " Michael Grzeschik
2015-02-06 23:24   ` Dmitry Torokhov [this message]
2015-02-06 23:41     ` Michael Grzeschik
2015-02-06 23:54       ` Dmitry Torokhov

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=20150206232448.GC29225@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-input@vger.kernel.org \
    --cc=m.grzeschik@pengutronix.de \
    --cc=support.opensource@diasemi.com \
    /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).