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: 8581 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id CEA6C23E61 for ; Mon, 14 May 2012 09:17:53 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 9EE29A18467 for ; Mon, 14 May 2012 09:17:53 +0000 (UTC) Received: by ggnf1 with SMTP id f1so3107589ggn.11 for ; Mon, 14 May 2012 02:17:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :x-gm-message-state; bh=fVx7axTazFnwbsYZhegbgt8tSn8x/MaLHkVCh2yyuRQ=; b=S306aDgL/1qbHDaIoIPvln2CycF4JYgGNF/OgowMuAq37atF6FYdSpDYq2cAnXiuJv zMFa2ffm3Lpyr1Ilk51C+NpLeoDNqMNe9+rOepDHEJ4y1YQWdKAZXjr1lwFNJZcC03CL mpxKKRlnpq477YXgWXGwdTkEgnrz8B+Bhr9InQW231tzZVRx1tC08KPi7NzWNNwuOAtf /OopAhG9W5dvbNKlOLE9D71IC4YYGmYLilWJdu78giOB8dAUWpLGGSBeJBS78FWN0oBR PVPzCVTx7f/UuBJ6PtcYNZb4DRiIwOcTOR/5aTOxlwHdx9oBUC6ZMxJdZ2YV4uoO70z0 5qig== Received: by 10.50.222.202 with SMTP id qo10mr3860437igc.0.1336987073034; Mon, 14 May 2012 02:17:53 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.35.72 with SMTP id o8csp329089ibd; Mon, 14 May 2012 02:17:52 -0700 (PDT) Received: by 10.213.25.220 with SMTP id a28mr1218021ebc.88.1336987071769; Mon, 14 May 2012 02:17:51 -0700 (PDT) Received: from eu1sys200aog109.obsmtp.com (eu1sys200aog109.obsmtp.com. [207.126.144.127]) by mx.google.com with SMTP id u8si5262013eem.125.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; Authentication-Results: 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 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: [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-Gm-Message-State: ALoCoQkO55aId0zvmslcUl1XfaVHiPJeqBs6FOXGzXPlFNB+F2Nq7Xhiohi8px0CXfDy/XK6NLdw 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;