From patchwork Fri Oct 1 11:56:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh KUMAR X-Patchwork-Id: 66360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wy0-f184.google.com (mail-wy0-f184.google.com [74.125.82.184]) by ozlabs.org (Postfix) with ESMTP id 206D6B70E9 for ; Fri, 1 Oct 2010 21:58:15 +1000 (EST) Received: by mail-wy0-f184.google.com with SMTP id 11sf1396670wyi.11 for ; Fri, 01 Oct 2010 04:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:mime-version:x-beenthere:received :received:received:received:received-spf:received:received:received :received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=ESFj+w67Q9+oUh3s4Zd0hwTqvGJulnZPompcIlBvWpc=; b=sk9hqv3UYddEgQVZAi30f8FNz3ba2kdC05sSArcAYrFHItpeE8GVTgq4nuwT2nbFw7 S5s2lgykPCKr3qOiXAmf8dtR/i62JXUxJg90XiugOiI7CGlgXo19z7ygtOAQZ/xu4cOf IPRZCyEjHxjSfJXQUvbMOqj+Wv2e3h/ME5lbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; b=Q69F7q0aIJf8tS22Kmc7aSkl4MDCtBp0S75aQZPVe7gxvlzCIwuD9092Oo3ckmda9n l/HRK0TRro5zwVPlr7t//PxcWX0V1l5guiSDKnsKURh2dbSqR8KDH2y4ZZMf+0BpgYn/ TSWlamX3v1P075oaa0th4IoUidPl3eKb2N0nY= Received: by 10.216.144.25 with SMTP id m25mr1104456wej.9.1285934294969; Fri, 01 Oct 2010 04:58:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.14.36.29 with SMTP id v29ls233557eea.3.p; Fri, 01 Oct 2010 04:58:14 -0700 (PDT) Received: by 10.14.119.66 with SMTP id m42mr419338eeh.15.1285934294521; Fri, 01 Oct 2010 04:58:14 -0700 (PDT) Received: by 10.14.119.66 with SMTP id m42mr419337eeh.15.1285934294505; Fri, 01 Oct 2010 04:58:14 -0700 (PDT) Received: from eu1sys200aog107.obsmtp.com (eu1sys200aog107.obsmtp.com [207.126.144.123]) by gmr-mx.google.com with ESMTP id r57si1121461eeh.1.2010.10.01.04.57.53; Fri, 01 Oct 2010 04:58:14 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.123 is neither permitted nor denied by best guess record for domain of viresh.kumar@st.com) client-ip=207.126.144.123; Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob107.postini.com ([207.126.147.11]) with SMTP ID DSNKTKXMwdb1BoXZozh2MIdZ0uhMXOzYpAdc@postini.com; Fri, 01 Oct 2010 11:58:14 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7C39CC9; Fri, 1 Oct 2010 11:57:49 +0000 (GMT) Received: from mail2.dlh.st.com (mail2.dlh.st.com [10.199.8.22]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 801D82657; Fri, 1 Oct 2010 11:57:46 +0000 (GMT) Received: from localhost (dlhl0509.dlh.st.com [10.199.7.86]) by mail2.dlh.st.com (MOS 3.8.7a) with ESMTP id CUF00989 (AUTH viresh.kumar@st.com); Fri, 1 Oct 2010 17:27:45 +0530 (IST) From: Viresh KUMAR To: linux-arm-kernel@lists.infradead.org, rtc-linux@googlegroups.com, a.zummo@towertech.it, dbrownell@users.sourceforge.net, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, linux-mtd@lists.infradead.org, dwmw2@infradead.org Cc: Deepak Sikri , shiraz.hashim@st.com, vipin.kumar@st.com, armando.visconti@st.com, vipulkumar.samar@st.com, rajeev-dlh.kumar@st.com, pratyush.anand@st.com, bhupesh.sharma@st.com, Viresh Kumar Subject: [rtc-linux] [PATCH V2 43/69] GIC: Added dummy handlers for Power Management Suspend Resume Date: Fri, 1 Oct 2010 17:26:03 +0530 Message-Id: X-Mailer: git-send-email 1.7.2.2 In-Reply-To: References: In-Reply-To: References: X-Original-Sender: viresh.kumar@st.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 207.126.144.123 is neither permitted nor denied by best guess record for domain of viresh.kumar@st.com) smtp.mail=viresh.kumar@st.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , From: Deepak Sikri enable_irq_wake() has a callback for interrupt controllers. But since gic handler did not had this call back associated, it was always returning -ENXIO, which was breaking the existing drivers. This patch adds dummy handlers in gic in order to avoid breaking of existing drivers. Signed-off-by: Deepak Sikri Signed-off-by: Viresh Kumar --- arch/arm/common/gic.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index 7dfa9a8..e816ef1 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c @@ -201,6 +201,18 @@ static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc) chip->unmask(irq); } +#ifdef CONFIG_PM + +static int gic_set_wake(unsigned int irq, unsigned int on) +{ + return 0; +} + +#else + +#define gic_set_wake NULL +#endif + static struct irq_chip gic_chip = { .name = "GIC", .ack = gic_ack_irq, @@ -210,6 +222,7 @@ static struct irq_chip gic_chip = { #ifdef CONFIG_SMP .set_affinity = gic_set_cpu, #endif + .set_wake = gic_set_wake, }; void __init gic_cascade_irq(unsigned int gic_nr, unsigned int irq)