From patchwork Tue Apr 28 04:19:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 6285401 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 08E1F9F52C for ; Tue, 28 Apr 2015 04:23:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2862520379 for ; Tue, 28 Apr 2015 04:23:40 +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 5ECAB20376 for ; Tue, 28 Apr 2015 04:23:39 +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 1Ymx0e-0004j6-1F; Tue, 28 Apr 2015 04:20:36 +0000 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ymx0F-0003WR-UE for linux-arm-kernel@lists.infradead.org; Tue, 28 Apr 2015 04:20:12 +0000 Received: by wiun10 with SMTP id n10so13700777wiu.1 for ; Mon, 27 Apr 2015 21:19:50 -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:in-reply-to:references; bh=4Alp5vMWgidHy8BnhoUfrP8FFPlAJp6hIiF9cTQdaPE=; b=paZmxmvbkLf39cWtWNTwvf9aBitCykgFlr8achi/6OJPr/TvCLwh+XnVqnXJUgV4pO Ho+410NyNLltDFs1dV0pv7JECDWqdm3f3s6nPcEG6OB7L/Lu1fgl4/voFRgohaBgyqhW XaYXVFHFZNDK7l8HY85OMnqKEInOSf6BE0++DiV6qx9wyhxTE7T3pVMw7GI+OHcFX0rX V70omye4Grtl+ESnZHs4g18VPxmqKvEFXoQjPVbVNbPFXNN5WwOhaIBN8G3GgPDtKLoT nmFuxLuBEv+L0qIb4j00XHBTyMCiAfQGM7WGKrd8Cn9CjSAiirYp0Dlso2WIizF96BuU GnLw== X-Received: by 10.180.106.137 with SMTP id gu9mr26749893wib.54.1430194790196; Mon, 27 Apr 2015 21:19:50 -0700 (PDT) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id dz4sm14353218wib.17.2015.04.27.21.19.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Apr 2015 21:19:49 -0700 (PDT) From: Dmitry Eremin-Solenikov To: Russell King Subject: [PATCH 2/5] ARM: sa1100: use sa11x0_sc_set_wake() in irq driver Date: Tue, 28 Apr 2015 07:19:29 +0300 Message-Id: <1430194772-28474-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1430194772-28474-1-git-send-email-dbaryshkov@gmail.com> References: <1430194772-28474-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150427_212012_162307_A22453EE X-CRM114-Status: GOOD ( 12.05 ) X-Spam-Score: -0.8 (/) Cc: 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 | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-sa1100/irq.c b/arch/arm/mach-sa1100/irq.c index 65aebfa..6afaa33 100644 --- a/arch/arm/mach-sa1100/irq.c +++ b/arch/arm/mach-sa1100/irq.c @@ -18,6 +18,8 @@ #include #include +#include + #include #include #include @@ -40,19 +42,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 = {