From patchwork Sun Oct 28 15:35:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 1657851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 890703FD4E for ; Sun, 28 Oct 2012 15:38:52 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TSUv2-0004Dt-Bh; Sun, 28 Oct 2012 15:36:57 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TSUuV-0004B2-1V for linux-arm-kernel@lists.infradead.org; Sun, 28 Oct 2012 15:36:23 +0000 Received: by mail-lb0-f177.google.com with SMTP id gi11so2481307lbb.36 for ; Sun, 28 Oct 2012 08:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=aUWINCcZU+WpnHJ3Q8LJA9kUkYsVns9dXGMiRD+dSf0=; b=trR1/9/dwSyqbFl0bqIMwGNq0U0HTiMpUFG4zNII40/SIyfsX9csuHGszXXhddWWs2 ayESPw1DmJJkA51gsLu6rmoK2Ka+VdiHEX/1vuxcLMmf9Mt630+l0ZRwthhJTRT5pfVz W4gPphYWEWoF2uUEX9nvG+EJ1xIHVTJw+zJGa4tMDdJQjaHEzPOs8KeDSmbSahk1saDv +FGtdNrcJ4pb9w9Z8tzt2+FJ9gHfFL0cs7zvqJjDVbadM/zAifFxkqSoy35sV5wdiqq3 jj/LS5ivTrfbuG+KIA3YxdCLA0Apo5AS0vhYzt6jgPdSaJbdLFvaVCsPyyUNNl3/38UE pujw== Received: by 10.112.83.196 with SMTP id s4mr10696450lby.29.1351438581577; Sun, 28 Oct 2012 08:36:21 -0700 (PDT) Received: from localhost.localdomain ([80.249.90.60]) by mx.google.com with ESMTPS id ft3sm2276824lbb.1.2012.10.28.08.36.19 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2012 08:36:20 -0700 (PDT) From: Vasily Khoruzhick To: Eric Miao , Russell King , Haojian Zhuang , Marek Vasut , linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/5] ARM: PXA: Zipit Z2: Change active_state of power button Date: Sun, 28 Oct 2012 18:35:54 +0300 Message-Id: <1351438555-4668-4-git-send-email-anarsoul@gmail.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1351438555-4668-1-git-send-email-anarsoul@gmail.com> References: <1351438555-4668-1-git-send-email-anarsoul@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (anarsoul[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Vasily Khoruzhick , mcmajeres X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: mcmajeres Otherwise userspace might be confused about button state Signed-off-by: mcmajeres Signed-off-by: Vasily Khoruzhick --- arch/arm/mach-pxa/z2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c index ce90fa9..fac7cba 100644 --- a/arch/arm/mach-pxa/z2.c +++ b/arch/arm/mach-pxa/z2.c @@ -437,7 +437,7 @@ static struct gpio_keys_button z2_pxa_buttons[] = { { .code = KEY_POWER, .gpio = GPIO1_ZIPITZ2_POWER_BUTTON, - .active_low = 0, + .active_low = 1, .desc = "Power Button", .wakeup = 1, .type = EV_KEY,