From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Dave Gerlach <d-gerlach@ti.com>
Cc: linux-input@vger.kernel.org, linux-omap@vger.kernel.org,
Vignesh R <vigneshr@ti.com>, Sekhar Nori <nsekhar@ti.com>
Subject: Re: [PATCH] input: touchscreen: ti_am335x_tsc: Fix HWPEN interrupt handling
Date: Thu, 7 Jan 2016 11:14:00 -0800 [thread overview]
Message-ID: <20160107191400.GC12332@dtor-ws> (raw)
In-Reply-To: <1442334489-3645-1-git-send-email-d-gerlach@ti.com>
On Tue, Sep 15, 2015 at 11:28:09AM -0500, Dave Gerlach wrote:
> Remove write to REG_IRQCLR and REG_IRQWAKEUP in interrupt handler for
> IRQENB_HW_PEN as the resume handler should and does clear REG_IRQWAKEUP.
> IRQENB_HW_PEN bit is set in irqclr so that all interrupts get cleared
> later so let IRQENB_HW_PEN be cleared by that.
>
> Without this patch wakeup events from TSC_ADC do not work because pending
> interrupts in TSC_ADC were causing HW_PEN interrupt, needed for wake from
> suspend modes, to get disabled immediately by IRQ handler after being
> enabled and preventing wake from happening.
>
> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Applied, thank you.
> ---
> drivers/input/touchscreen/ti_am335x_tsc.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
> index 191a1b8..a21a07c 100644
> --- a/drivers/input/touchscreen/ti_am335x_tsc.c
> +++ b/drivers/input/touchscreen/ti_am335x_tsc.c
> @@ -273,8 +273,6 @@ static irqreturn_t titsc_irq(int irq, void *dev)
> status = titsc_readl(ts_dev, REG_RAWIRQSTATUS);
> if (status & IRQENB_HW_PEN) {
> ts_dev->pen_down = true;
> - titsc_writel(ts_dev, REG_IRQWAKEUP, 0x00);
> - titsc_writel(ts_dev, REG_IRQCLR, IRQENB_HW_PEN);
> irqclr |= IRQENB_HW_PEN;
> }
>
> --
> 2.4.6
>
--
Dmitry
prev parent reply other threads:[~2016-01-07 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 16:28 [PATCH] input: touchscreen: ti_am335x_tsc: Fix HWPEN interrupt handling Dave Gerlach
2016-01-07 19:14 ` Dmitry Torokhov [this message]
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=20160107191400.GC12332@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=d-gerlach@ti.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=vigneshr@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.