Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbdDOGoM (ORCPT ); Sat, 15 Apr 2017 02:44:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:33713 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751295AbdDOGoJ (ORCPT ); Sat, 15 Apr 2017 02:44:09 -0400 Date: Sat, 15 Apr 2017 08:44:05 +0200 From: Jean Delvare To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, Martin Kepplinger , Guenter Roeck , Wolfram Sang , Christian Gmeiner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: ar1021 - do not force raising edge IRQ trigger Message-ID: <20170415084405.6eef66b8@endymion> In-Reply-To: <20170413234923.GA38321@dtor-ws> References: <20170413234923.GA38321@dtor-ws> Organization: SUSE Linux X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1139 Lines: 30 On Thu, 13 Apr 2017 16:49:23 -0700, Dmitry Torokhov wrote: > We should not be forcing edge triggered interrupt, but rather let platform > decide the kind of trigger it needs to use. Also, the driver is not quite > safe with regard to edge-triggered interrupts as it does not try to kick > the controller after requesting/enabling IRQ. > > Signed-off-by: Dmitry Torokhov > --- > drivers/input/touchscreen/ar1021_i2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/ar1021_i2c.c b/drivers/input/touchscreen/ar1021_i2c.c > index 6797e123925a..6c3c79b7ff51 100644 > --- a/drivers/input/touchscreen/ar1021_i2c.c > +++ b/drivers/input/touchscreen/ar1021_i2c.c > @@ -109,7 +109,7 @@ static int ar1021_i2c_probe(struct i2c_client *client, > > error = devm_request_threaded_irq(&client->dev, client->irq, > NULL, ar1021_i2c_irq, > - IRQF_TRIGGER_RISING | IRQF_ONESHOT, > + IRQF_ONESHOT, > "ar1021_i2c", ar1021); > if (error) { > dev_err(&client->dev, Acked-by: Jean Delvare -- Jean Delvare SUSE L3 Support