From patchwork Thu Jan 15 10:09:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5638131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F3BF89F2ED for ; Thu, 15 Jan 2015 10:12:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0EBCD20155 for ; Thu, 15 Jan 2015 10:12:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 04B852015E for ; Thu, 15 Jan 2015 10:12:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YBhNr-0004Ep-Td; Thu, 15 Jan 2015 10:10:35 +0000 Received: from mail-ig0-x234.google.com ([2607:f8b0:4001:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YBhNZ-0002xY-PY for linux-arm-kernel@lists.infradead.org; Thu, 15 Jan 2015 10:10:18 +0000 Received: by mail-ig0-f180.google.com with SMTP id h15so13749455igd.1 for ; Thu, 15 Jan 2015 02:09:56 -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:in-reply-to:references; bh=pnp0WzSIlO+HWQolLwoEn+ZAdkYwib/bvrRIz+UYORA=; b=DMTTd5/0GnIX7Go09HYsDZ3/7wYgZzIjkgUw55Y2nci2AMhOfKxfr3XOduxjxCiKqj XLIGEhqpnCxJEDlQh/pP75qd8/TjRWOSb1FuYDJndComu9meBCGtFMrbJz9Vk2fMDztb PerWy8AMcNYYVvNJiTzHnveCDNhddIy48wsFBvhAqH4vsHOH2FjR//6j59I/DnPTKXtu vIRAFtaB26tTrf2awLdEnfR9zrXm17Ywe/yZPtK/A6y5hdHM8XqUcDlNeVUZy7+os4ea RyNOXaZWM7Cr0qNbsgRqIqvPO3o6kETylBj01t28ut83pl9gDWekz1FLJXskZSwENBFO Y7+Q== X-Received: by 10.43.92.9 with SMTP id bo9mr9023103icc.54.1421316596389; Thu, 15 Jan 2015 02:09:56 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id l14sm713170ioi.31.2015.01.15.02.09.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Jan 2015 02:09:55 -0800 (PST) From: Dmitry Eremin-Solenikov To: Russell King , Thomas Gleixner , Jason Cooper Subject: [PATCH 2/5] ARM: sa1100: use sa11x0_sc_set_wake() in irq driver Date: Thu, 15 Jan 2015 13:09:31 +0300 Message-Id: <1421316574-10022-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421316574-10022-1-git-send-email-dbaryshkov@gmail.com> References: <1421316574-10022-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150115_021017_899098_3A36A648 X-CRM114-Status: GOOD ( 11.40 ) X-Spam-Score: -0.8 (/) Cc: Linus Walleij , Andrea Adami , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use new function controlling PWER register in IRQ driver. Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-sa1100/irq.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/arm/mach-sa1100/irq.c b/arch/arm/mach-sa1100/irq.c index 65aebfa..7a5aa56 100644 --- a/arch/arm/mach-sa1100/irq.c +++ b/arch/arm/mach-sa1100/irq.c @@ -40,19 +40,9 @@ static void sa1100_unmask_irq(struct irq_data *d) ICMR |= BIT(d->hwirq); } -/* - * Apart form GPIOs, only the RTC alarm can be a wakeup event. - */ static int sa1100_set_wake(struct irq_data *d, unsigned int on) { - if (BIT(d->hwirq) == IC_RTCAlrm) { - if (on) - PWER |= PWER_RTC; - else - PWER &= ~PWER_RTC; - return 0; - } - return -EINVAL; + return sa11x0_sc_set_wake(d->hwirq, on); } static struct irq_chip sa1100_normal_chip = {