Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3403467pxb; Mon, 25 Jan 2021 15:32:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzgrVL14Bw8QixyNHch14YRqN1BflElmQDPmHTKnPmTYtSD7aloWR11NNtOo2V4inwUOCj X-Received: by 2002:a50:fc04:: with SMTP id i4mr2443194edr.137.1611617525213; Mon, 25 Jan 2021 15:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611617525; cv=none; d=google.com; s=arc-20160816; b=YvjuuQN+Us96E1vU5rDUXpJyyBTmHwoJQiH1wzltFcDP4MLnwrRAAk/QeeXTq6J8Bt 1jivRzbOt83DTFmnh3mMFrjgIJosQg7QNWl3KK1uWIOkhuss9v7FS8loQNvomotjP6Qu 2rvNhD1RxgAB0GUjPDK7WXqnT5KXUQPxFqDHeHeLTkmWz6rwP27EqkVvnDEtTSB8JS8G fsmb0rt3dGFCxvo9eVvc2TRF8Tn7rRf1Y8K2N+0EWBU0gzMMqNSh+n/9YFTOKGjnolJM PhMjdqd6P+sCf1402EsaSEfd5c9g+3/9yZ5zubYbcgr0TwRLnZgdIfb5jplNyfxXJmlk PWFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=h1jeOAlLv2nhj4Hqhg4b3Cg7OyhQCKZE/0B+nlesfDs=; b=FDkuUNRvluzBJlpW8fTNZ6P7lxJisDmnhk5G0fEh2ofnVojMXb0hQ4HALjZkiJ0vmv 71idtPfeOX7dbU2V4p/Rffjb2WY8s2gTcLiOS75OaqIVchjvlC+RHmmafLYAAs9E9fC/ ZIEnT4LWsawCwSLWCKsjLJgdmioZlLAG54gfxqk+7t8Qkl3LjEV60UadsLg95oy4O6HB B+9yP9vsA3ujTzyIYmCRTZv6MP7EWwTx6Sxy/+K+uSZbZmSPKjd57ZIf3So86e9jvwul waEweRrKcGJXiybD2NDzOj4SAx+CAulboAwdmeptS7CaIgdZxfxKEUjh4ivo5CU6jIZ8 mqNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si7464756edp.546.2021.01.25.15.31.41; Mon, 25 Jan 2021 15:32:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732105AbhAYXaU (ORCPT + 99 others); Mon, 25 Jan 2021 18:30:20 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:48697 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732875AbhAYX3V (ORCPT ); Mon, 25 Jan 2021 18:29:21 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 0C5BE20003; Mon, 25 Jan 2021 23:28:21 +0000 (UTC) From: Alexandre Belloni To: a.zummo@towertech.it, Philipp Rosenberger Cc: Alexandre Belloni , dan.carpenter@oracle.com, bruno.thomsen@gmail.com, u.kleine-koenig@pengutronix.de, biwen.li@nxp.com, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com, linux-rtc@vger.kernel.org, lvb@xiphos.com Subject: Re: [PATCH v3 0/2] rtc: pcf2127: proper initialization after power loss Date: Tue, 26 Jan 2021 00:28:21 +0100 Message-Id: <161161723905.1969074.4659584824562876901.b4-ty@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210118085752.5759-1-p.rosenberger@kunbus.com> References: <20210118085752.5759-1-p.rosenberger@kunbus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Jan 2021 09:57:50 +0100, Philipp Rosenberger wrote: > If the PCF2127/2129 loses power it needs some initialization to work > correctly. A bootloader/firmware might do this. If not we should do this > in the driver. > > Changes for v3: > - drop the test if clearing PORO was successful > - only run OTP refresh if OTPR bit is not already set > > [...] Applied, thanks! [1/2] rtc: pcf2127: Disable Power-On Reset Override commit: b9ac079abefc1f1cbee8a0f7195bad1d32dc72c7 [2/2] rtc: pcf2127: Run a OTP refresh if not done before commit: 15f57b3e3130790b6d06ea04f0c1edf0e5455bdd Best regards, -- Alexandre Belloni