From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id gt9si84945wib.2.2015.05.02.07.00.26 for ; Sat, 02 May 2015 07:00:26 -0700 (PDT) Date: Sat, 2 May 2015 16:00:25 +0200 From: Alexandre Belloni To: Kukjin Kim Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, rtc-linux@googlegroups.com, ben-linux@fluff.org, p_gortmaker@yahoo.com, a.zummo@towertech.it, Wan ZongShun Subject: [rtc-linux] Re: [2/3] rtc: rtc-s3c: Add spin_lock_irq in s3c_rtc_setaie Message-ID: <20150502140025.GL12076@piout.net> References: <1289865774-31073-3-git-send-email-kgene.kim@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <1289865774-31073-3-git-send-email-kgene.kim@samsung.com> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Hi Kukjin, On 16/11/2010 at 09:02:53 +0900, Kukjin Kim wrote : > This patch adds spin_lock_irq() and spin_unlock_irq() during > alarm interrupt configuration to avoid interrupt missing. > > Cc: Ben Dooks > Cc: Wan ZongShun > Cc: Alessandro Zummo > Signed-off-by: Kukjin Kim This patch never made it in the mainline, is it still necessary? > --- > drivers/rtc/rtc-s3c.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c > index e2636ff..bb88027 100644 > --- a/drivers/rtc/rtc-s3c.c > +++ b/drivers/rtc/rtc-s3c.c > @@ -82,12 +82,14 @@ static int s3c_rtc_setaie(struct device *dev, unsigned int enabled) > > pr_debug("%s: aie=%d\n", __func__, enabled); > > + spin_lock_irq(&s3c_rtc_pie_lock); > tmp = readb(s3c_rtc_base + S3C2410_RTCALM) & ~S3C2410_RTCALM_ALMEN; > > if (enabled) > tmp |= S3C2410_RTCALM_ALMEN; > > writeb(tmp, s3c_rtc_base + S3C2410_RTCALM); > + spin_unlock_irq(&s3c_rtc_pie_lock); > > return 0; > } -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.