From patchwork Fri Mar 9 02:24:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jett.Zhou" X-Patchwork-Id: 145645 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-tul01m020-f184.google.com (mail-tul01m020-f184.google.com [209.85.214.184]) (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 3D183B6F13 for ; Fri, 9 Mar 2012 13:26:53 +1100 (EST) Received: by obbwc7 with SMTP id wc7sf1322625obb.11 for ; Thu, 08 Mar 2012 18:26:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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-originalarrivaltime :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=APDj30z76gi5qOsbzR+bBzSBbzucfh+lC0q1GQmgjbw=; b=36qDq3rI7pR6cAVTfhbB8Bh01wP+KFftB8rIfPo/GYqXuX7zUUsScO2JMAFN3W41qX veJ/pTAIBETXuy0Kt3+qhhAJdsUO9h5bMWbDwEKunQ6AtZ6xKNS4hnVekyXAnSaFzjXv ebZsQHb1rNfkT2IRwhzeqQ1R0VmfORf8E0u9U= Received: by 10.68.244.97 with SMTP id xf1mr252716pbc.17.1331260009457; Thu, 08 Mar 2012 18:26:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.68.28.170 with SMTP id c10ls380359pbh.3.gmail; Thu, 08 Mar 2012 18:26:49 -0800 (PST) Received: by 10.68.134.225 with SMTP id pn1mr995256pbb.7.1331260009157; Thu, 08 Mar 2012 18:26:49 -0800 (PST) Received: by 10.68.134.225 with SMTP id pn1mr995255pbb.7.1331260009146; Thu, 08 Mar 2012 18:26:49 -0800 (PST) Received: from psmtp.com ([74.125.149.85]) by gmr-mx.google.com with SMTP id e6si8004085pbt.1.2012.03.08.18.25.23; Thu, 08 Mar 2012 18:26:49 -0800 (PST) Received-SPF: temperror (google.com: error in processing during lookup of jtzhou@marvell.com: DNS timeout) client-ip=74.125.149.85; Received: from MSI-MTA.marvell.com ([65.219.4.132]) by na3sys009aob136.postini.com ([74.125.148.12]) with SMTP ID DSNKT1lqDITrKsQXqCToKjG5qSWF1ZdhBnSF@postini.com; Thu, 08 Mar 2012 18:26:48 PST Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 8 Mar 2012 18:24:33 -0800 Received: from localhost (unknown [10.38.34.140]) by maili.marvell.com (Postfix) with ESMTP id 9A35D4E50D; Thu, 8 Mar 2012 18:24:33 -0800 (PST) From: "Jett.Zhou" To: haojian.zhuang@gmail.com, a.zummo@towertech.it Cc: akpm@linux-foundation.org, sameo@linux.intel.com, broonie@opensource.wolfsonmicro.com, cxie4@marvell.com, dmitry.torokhov@gmail.com, lrg@ti.com, jtzhou@marvell.com, jett.zhou@gmail.com, linux-arm-kernel@lists.infradead.org, rtc-linux@googlegroups.com Subject: [rtc-linux] [V2 2/4] rtc: fix 88pm860x rtc irq enable callback Date: Fri, 9 Mar 2012 10:24:34 +0800 Message-Id: <1331259874-26503-1-git-send-email-jtzhou@marvell.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1329997662-2931-1-git-send-email-jtzhou@marvell.com> References: <1329997662-2931-1-git-send-email-jtzhou@marvell.com> X-OriginalArrivalTime: 09 Mar 2012 02:24:33.0818 (UTC) FILETIME=[C41217A0:01CCFD9B] X-Original-Sender: jtzhou@marvell.com X-Original-Authentication-Results: gmr-mx.google.com; spf=temperror (google.com: error in processing during lookup of jtzhou@marvell.com: DNS timeout) smtp.mail=jtzhou@marvell.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: , According to 88pm860x spec, rtc alarm irq enable control is bit3 for RTC_ALARM_EN, so fix it. Signed-off-by: Jett.Zhou --- drivers/rtc/rtc-88pm860x.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c index f04761e..8b72b4c 100644 --- a/drivers/rtc/rtc-88pm860x.c +++ b/drivers/rtc/rtc-88pm860x.c @@ -72,9 +72,9 @@ static int pm860x_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) struct pm860x_rtc_info *info = dev_get_drvdata(dev); if (enabled) - pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM, ALARM); + pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM_EN, ALARM_EN); else - pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM, 0); + pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM_EN, 0); return 0; }