From patchwork Wed Nov 21 00:37:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Adami X-Patchwork-Id: 1776771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 294F1DFF38 for ; Wed, 21 Nov 2012 00:39:53 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TayJp-0002ty-Sd; Wed, 21 Nov 2012 00:37:33 +0000 Received: from mail-ee0-f49.google.com ([74.125.83.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TayJn-0002ta-4k for linux-arm-kernel@lists.infradead.org; Wed, 21 Nov 2012 00:37:31 +0000 Received: by mail-ee0-f49.google.com with SMTP id c4so2066365eek.36 for ; Tue, 20 Nov 2012 16:37:28 -0800 (PST) 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; bh=oMTvEEorZvaB1Oymqn58roZYdxMB4k/G8CQG599PCKg=; b=zdxqZ4Np0gw6dtuQBjWRyxS7NBV/YjqSK79+scPc4BOaj0IKDao8xuxxc8ocK2k13U md9YrxUallewbHx9GRhymwKRZ+XJg+pDZq1XIvogePXDySOOQMo/J1Ba7550joTyev4c f2mmgzCK09BmVJVo4wxq7ZNbNDO1xpqwaQs7zBKkW9i2FbbxH62jXIrmKWhZSKEyzwFx gRnOeo2gR0IZsVK3/CSVOX8O6uoCyoOoHiFIdvxLf0TdvbevlKNtG0ijCTdBhxe09mt/ eOb1GuxO+V9CTzXEX+fQwtrmMWAzYTRMothQS1NdNrshMULafWDl26HrVCPhXIMHdSmj eLng== Received: by 10.14.210.200 with SMTP id u48mr38232504eeo.29.1353458248601; Tue, 20 Nov 2012 16:37:28 -0800 (PST) Received: from mizar.localdomain (host17-36-dynamic.252-95-r.retail.telecomitalia.it. [95.252.36.17]) by mx.google.com with ESMTPS id e7sm33757976eep.1.2012.11.20.16.37.26 (version=SSLv3 cipher=OTHER); Tue, 20 Nov 2012 16:37:27 -0800 (PST) From: Andrea Adami To: Eric Miao Subject: [PATCH 1/1] ARM: pxa: fix pxa25x gpio wakeup setting Date: Wed, 21 Nov 2012 01:37:25 +0100 Message-Id: <1353458245-14142-1-git-send-email-andrea.adami@gmail.com> X-Mailer: git-send-email 1.7.8.6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121120_193731_377398_0BE83E93 X-CRM114-Status: GOOD ( 13.34 ) 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 [74.125.83.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrea.adami[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: Russell King , linux-arm-kernel@lists.infradead.org, Haojian Zhuang , linux-kernel@vger.kernel.org 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 * Since 3.3 gpio wakeup is broken on pxa25x (tested on corgi and poodle). * Use gpio_set_wake like done for pxa27x with commit id * b95ace54a23e2f8ebb032744cebb17c9f43bf651 Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/pxa25x.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c index 3352b37..aeb913e 100644 --- a/arch/arm/mach-pxa/pxa25x.c +++ b/arch/arm/mach-pxa/pxa25x.c @@ -338,6 +338,10 @@ void __init pxa25x_map_io(void) pxa25x_get_clk_frequency_khz(1); } +static struct pxa_gpio_platform_data pxa25x_gpio_info __initdata = { + .gpio_set_wake = gpio_set_wake, +}; + static struct platform_device *pxa25x_devices[] __initdata = { &pxa25x_device_udc, &pxa_device_pmu, @@ -370,6 +374,7 @@ static int __init pxa25x_init(void) register_syscore_ops(&pxa2xx_mfp_syscore_ops); register_syscore_ops(&pxa2xx_clock_syscore_ops); + pxa_register_device(&pxa_device_gpio, &pxa25x_gpio_info); ret = platform_add_devices(pxa25x_devices, ARRAY_SIZE(pxa25x_devices)); if (ret)