From patchwork Thu Mar 21 13:31:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 2313401 Return-Path: X-Original-To: patchwork-linux-sh@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 3834C400E6 for ; Thu, 21 Mar 2013 13:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757087Ab3CUNbb (ORCPT ); Thu, 21 Mar 2013 09:31:31 -0400 Received: from mail-ea0-f180.google.com ([209.85.215.180]:51488 "EHLO mail-ea0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756329Ab3CUNbb (ORCPT ); Thu, 21 Mar 2013 09:31:31 -0400 Received: by mail-ea0-f180.google.com with SMTP id j14so867636eak.39 for ; Thu, 21 Mar 2013 06:31:30 -0700 (PDT) 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:in-reply-to :references; bh=5kVTXYXOwaZXD9+149p9MIaBgTe4t14S+mGuwd8G0XM=; b=kf/e7pUXA0haDZitkUu3c2nimnH4zdd+uRg2ZMPmQIZwelPLBWbtSv+Rl+MM3CS64y Y3wr11QXnkB18+4vVgQYvEs7gI92/VsSCYnft7JKUlYLnRWNPutbl+lmuCLyUcGcQeUF xjYUoWICzlXmpPfYf/7GTmIzRhWwIiu+OBWDZ4Sh/Kc5iSrqmoQNCNtSWwMLA+V+4I5F 6cdgCbM533Xip87e3G1D6nivNLPh8ZY6mQQ2bYfTNcsqSxSEzdv7AHK+7rCWCpo33wK9 mrSjAiJqsWCm+JjNCS7e8U9pXTVqgMPqqpDBRKWS7ebETSNYyPWyr3GjZqzn3I8uPCMK WJGg== X-Received: by 10.14.193.134 with SMTP id k6mr82760319een.37.1363872690144; Thu, 21 Mar 2013 06:31:30 -0700 (PDT) Received: from localhost.localdomain (p4FD26909.dip.t-dialin.net. [79.210.105.9]) by mx.google.com with ESMTPS id q5sm8478702eeo.17.2013.03.21.06.31.29 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Mar 2013 06:31:29 -0700 (PDT) From: Bastian Hecht To: linux-sh@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Simon Horman , Magnus Damm Subject: [Workaround 1/2] input: st1232: Add IRQF_NO_SUSPEND flag Date: Thu, 21 Mar 2013 14:31:36 +0100 Message-Id: <1363872697-11267-2-git-send-email-hechtb+renesas@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1363872697-11267-1-git-send-email-hechtb+renesas@gmail.com> References: <1363872697-11267-1-git-send-email-hechtb+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org This is temporary workaround. Don't merge. See cover-letter "[PATCH 0/2] ARM: shmobile: sh73a0 Suspend-to-RAM" for more information. 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. Not-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;