Message ID | 1438681534-12027-15-git-send-email-alexandre.belloni@free-electrons.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDS7HNEFSALRBTETQKXAKGQE4KWQEWI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wi0-x23f.google.com (mail-wi0-x23f.google.com [IPv6:2a00:1450:400c:c05::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 189211402D4 for <incoming@patchwork.ozlabs.org>; Tue, 4 Aug 2015 19:45:51 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=fiIR2OqX; dkim-atps=neutral Received: by wibdx1 with SMTP id dx1sf2221805wib.0 for <incoming@patchwork.ozlabs.org>; Tue, 04 Aug 2015 02:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:content-type:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe; bh=qGyZCNdkzKRO/71STB1oDrKTTfvS0p0VEfc6Lc1/364=; b=fiIR2OqXAUMcK0nSoDeAJdlau/ssuc5HlFoiUb9jxWZaO0PGKqtrSANPbBlX3uaBga nllsOr8IgpXA7Eqw+zDFeeZ3NLShaIloiYjgnitIfCeRfP9NprpXuwtojDbGStMfn6Um tjPr43b47LwoiNywGoEvKc3eYx0hVvURaVIEaBGjM2sRgd96iizKznOml4c1Rx/zQYiq wsm9ehoA+KM9u0aqzXdjlX7O5UZ6IUeouC1KrtRfYHZUXwUcvBQfDr+auKdCrvRYPtJ5 KwHSaRE4C9hS36xFio3/HLlAZfwg5T2QXEpe7uf6joyLEsUnVzTIwlXCnEOikhZKbIMn 84qw== X-Received: by 10.152.116.70 with SMTP id ju6mr12658lab.8.1438681548538; Tue, 04 Aug 2015 02:45:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.44.228 with SMTP id h4ls22875lam.23.gmail; Tue, 04 Aug 2015 02:45:48 -0700 (PDT) X-Received: by 10.112.160.39 with SMTP id xh7mr879097lbb.22.1438681548003; Tue, 04 Aug 2015 02:45:48 -0700 (PDT) Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id bk2si47221wib.1.2015.08.04.02.45.47 for <rtc-linux@googlegroups.com>; Tue, 04 Aug 2015 02:45:47 -0700 (PDT) Received-SPF: pass (google.com: domain of alexandre.belloni@free-electrons.com designates 37.187.137.238 as permitted sender) client-ip=37.187.137.238; Received: by mail.free-electrons.com (Postfix, from userid 106) id A223413FD; Tue, 4 Aug 2015 11:45:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (128-79-216-6.hfc.dyn.abo.bbox.fr [128.79.216.6]) by mail.free-electrons.com (Postfix) with ESMTPSA id B8BEA1403; Tue, 4 Aug 2015 11:45:45 +0200 (CEST) From: Alexandre Belloni <alexandre.belloni@free-electrons.com> To: rtc-linux@googlegroups.com Cc: Alessandro Zummo <a.zummo@towertech.it>, linux-kernel@vger.kernel.org, Alexandre Belloni <alexandre.belloni@free-electrons.com> Subject: [rtc-linux] [PATCH 14/15] rtc: rx8025: fix RX8025_BIT_CTRL2_CTFG initialization Date: Tue, 4 Aug 2015 11:45:33 +0200 Message-Id: <1438681534-12027-15-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1438681534-12027-1-git-send-email-alexandre.belloni@free-electrons.com> References: <1438681534-12027-1-git-send-email-alexandre.belloni@free-electrons.com> X-Original-Sender: alexandre.belloni@free-electrons.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of alexandre.belloni@free-electrons.com designates 37.187.137.238 as permitted sender) smtp.mail=alexandre.belloni@free-electrons.com Reply-To: rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com>, <http://groups.google.com/group/rtc-linux/subscribe> |
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index f9b86b92943f..f3f1de26c228 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c @@ -270,7 +270,7 @@ static int rx8025_init_client(struct i2c_client *client) need_clear = 1; } - if (!(ctrl[1] & RX8025_BIT_CTRL2_CTFG)) + if (ctrl[1] & RX8025_BIT_CTRL2_CTFG) need_clear = 1; if (need_clear) {
RX8025_BIT_CTRL2_CTFG was set to 0 only when it was already 0. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- drivers/rtc/rtc-rx8025.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)