From patchwork Thu Feb 14 17:32:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 2142271 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1877140B0D for ; Thu, 14 Feb 2013 16:32:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761457Ab3BNQcV (ORCPT ); Thu, 14 Feb 2013 11:32:21 -0500 Received: from mail-vc0-f181.google.com ([209.85.220.181]:65022 "EHLO mail-vc0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761449Ab3BNQcU (ORCPT ); Thu, 14 Feb 2013 11:32:20 -0500 Received: by mail-vc0-f181.google.com with SMTP id d16so1628990vcd.12 for ; Thu, 14 Feb 2013 08:32:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=9epVhZ8rOaMo+G2Ool4LECAEUNRQFXiLnI7Qzadk34A=; b=NF3QfV57zngb8oIbP31MawqirLfH9K+9GLGdT5Ha4rFhxgpYpnFWl+KksGp+qfYHTG /9b+ijvV+RLYiGA7uY9DRSDpFOxjdfIos8TNTX3RkI84dhjU7nHHelH4XxmlYtdWlwe8 FLxzP0J5G432I6tvMKkkgCvBmUos8bUIfbTJJEmLX/nX2N7kQnR/f1xBryI/JNIn5uBm enZc53vUoAEGBV8xlqS6pmdgIBr7nFAKYDeKt9fcutu7fpwrS1wHJCAvP/2MQAcE2OKO j89GstV6CFBeJXHDdlaX7y7rJLJ3p/+SixjLCw9C7ai8RMIvdP3DAhZ5rB2tCGTO4/Y8 5wrQ== X-Received: by 10.220.153.69 with SMTP id j5mr35646004vcw.35.1360859539594; Thu, 14 Feb 2013 08:32:19 -0800 (PST) Received: from bender.routerdd3bcc.com (rrcs-50-74-208-202.nyc.biz.rr.com. [50.74.208.202]) by mx.google.com with ESMTPS id h11sm74799390vdj.12.2013.02.14.08.32.17 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Feb 2013 08:32:18 -0800 (PST) From: Bastian Hecht To: linux-input@vger.kernel.org, linux-sh@vger.kernel.org Cc: Magnus Damm , Tony SIM , Bastian Hecht Subject: [PATCH] input: st1232: Add IRQF_NO_SUSPEND flag Date: Thu, 14 Feb 2013 11:32:12 -0600 Message-Id: <1360863132-11227-1-git-send-email-hechtb+renesas@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org When registering the interrupt handler we add the IRQF_NO_SUSPEND flag to save the IRQ line from being disabled during suspension. This way we keep the ability to use the device as a wakeup source. Signed-off-by: Bastian Hecht --- drivers/input/touchscreen/st1232.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index d9d05e2..4f37199 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -180,7 +180,7 @@ static int st1232_ts_probe(struct i2c_client *client, input_set_abs_params(input_dev, ABS_MT_POSITION_Y, MIN_Y, MAX_Y, 0, 0); error = request_threaded_irq(client->irq, NULL, st1232_ts_irq_handler, - IRQF_ONESHOT, client->name, ts); + IRQF_ONESHOT | IRQF_NO_SUSPEND, client->name, ts); if (error) { dev_err(&client->dev, "Failed to register interrupt\n"); goto err_free_mem;