From patchwork Mon May 14 09:17:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 158958 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ee0-f56.google.com (mail-ee0-f56.google.com [74.125.83.56]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 56E5FB7007 for ; Mon, 14 May 2012 19:17:54 +1000 (EST) Received: by eeke53 with SMTP id e53sf2592121eek.11 for ; Mon, 14 May 2012 02:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:from:to:cc:subject:date:message-id :x-mailer:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=n+cCVSfC9QAHhvh3scll1ahTEqEssJb/N6CiPCafnHA=; b=n6y4+rJ32d+3QHILK/niJVi9M/TlinP5UWelBkP6L02mjF+ZyASN7CdCtnnuImr93I b3cG40kSGIiqxLj9ShB9Ewx3M+Wsjna3L4hmcBYGBqVE2ggKo/ICwoXEJLUqaEEbbd8f 8JLE7iOaAP/Cdwb6S3io7+AuX1piS0TiZ2ljo= Received: by 10.216.51.213 with SMTP id b63mr140666wec.65.1336987072170; Mon, 14 May 2012 02:17:52 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.213.13.216 with SMTP id d24ls786149eba.9.gmail; Mon, 14 May 2012 02:17:51 -0700 (PDT) Received: by 10.213.144.67 with SMTP id y3mr1182646ebu.11.1336987071424; Mon, 14 May 2012 02:17:51 -0700 (PDT) Received: by 10.213.144.67 with SMTP id y3mr1182645ebu.11.1336987071406; Mon, 14 May 2012 02:17:51 -0700 (PDT) Received: from eu1sys200aog109.obsmtp.com (eu1sys200aog109.obsmtp.com. [207.126.144.127]) by gmr-mx.google.com with SMTP id u54si17957037eeb.2.2012.05.14.02.17.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 May 2012 02:17:51 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.127 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.127; Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob109.postini.com ([207.126.147.11]) with SMTP ID DSNKT7DNtveTWtujZCNv2SQkdCAeRa68z3Y2@postini.com; Mon, 14 May 2012 09:17:51 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 69FB1104; Mon, 14 May 2012 09:17:11 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D70272465; Mon, 14 May 2012 09:17:10 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 4BF8C24C858; Mon, 14 May 2012 11:17:00 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 14 May 2012 11:17:05 +0200 From: Linus Walleij To: Andrew Morton Cc: Alessandro Zummo , , Rajkumar Kasirajan , Mattias Wallin , Linus Walleij Subject: [rtc-linux] [PATCH 2/2] RTC: pl031: removed RTC timer interrupt handling. Date: Mon, 14 May 2012 11:17:01 +0200 Message-ID: <1336987021-19062-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.9.2 MIME-Version: 1.0 X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 207.126.144.127 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , From: Rajkumar Kasirajan Removed RTT interrupt handling, since PIE mode interrupts are now better emulated in generic code via an hrtimer we have no need for this, and there is no codepath in the driver that enables these periodic interrupts anyway. Cc: Mattias Wallin Signed-off-by: Rajkumar Kasirajan Signed-off-by: Linus Walleij --- drivers/rtc/rtc-pl031.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index f027c06..cc05339 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c @@ -220,17 +220,9 @@ static irqreturn_t pl031_interrupt(int irq, void *dev_id) unsigned long events = 0; rtcmis = readl(ldata->base + RTC_MIS); - if (rtcmis) { - writel(rtcmis, ldata->base + RTC_ICR); - - if (rtcmis & RTC_BIT_AI) - events |= (RTC_AF | RTC_IRQF); - - /* Timer interrupt is only available in ST variants */ - if ((rtcmis & RTC_BIT_PI) && - (ldata->hw_designer == AMBA_VENDOR_ST)) - events |= (RTC_PF | RTC_IRQF); - + if (rtcmis & RTC_BIT_AI) { + writel(RTC_BIT_AI, ldata->base + RTC_ICR); + events |= (RTC_AF | RTC_IRQF); rtc_update_irq(ldata->rtc, 1, events); return IRQ_HANDLED;