Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp729163ybl; Wed, 21 Aug 2019 04:48:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrjtm1eskmuut+ltdgbRfYtcM6f87wEgxbCLI1OYK09oj2L9DonYB5Ht6pnmdQ/CcDQiLV X-Received: by 2002:a17:90b:f12:: with SMTP id br18mr2881194pjb.127.1566388136038; Wed, 21 Aug 2019 04:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566388136; cv=none; d=google.com; s=arc-20160816; b=JuwCnYMy4UvGru1ZQGiAgjJgc91jem1un4LssON8qAIwpZOnYpUhnjMIb26F0EO9kQ L865fhxqsEq7C2dlwN7eL1XD0iQmbtYwLuObfoe0cspKv/PDWIkfE1HsEx7yTaQbgYZU gxlCft6N2Vl3CvSpAMtihzA7WxmRnNi+SNJw3EDT5HQ+VL4llHzNSrl1vQkzI2zD3xQf wW7s/kuJb32y1d6k8w5V/J5RbG3QwECVeU/g8xdjN8C/g0DbEaYl9KChAL5OJ8aqFG1H sEr6LSpzNOJm1Ij50x0PYZ4OBnAFpBRz7Lvw9ugkAM9B966XzkZvY/p6X86pif5W6WY8 0ALA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zpJrwrxxvYiCGTqZfEB4v/W4+ZD+ic4TYT5QJIWQg24=; b=opNSTFnraMhOHT/UOvUpJEuZW/XARiZDl4GtS+HmX29KO6+nKycy0RXKdsMs/OofhB /WtVXJ3lPI43cCce+ebCfElLbd0onMyziLOQT8duVfmvgGbncCq0cs4nE0ZeKS+d/f/z KzO8Znk3GI1euRAGdw7j3PJP/l9lN34/i+ylujKUd2DNQ5vl4imShdpPJOOJfwja5cvo h0h2Y/HfGvb8azAwT9q9zJQZCUMZ1aCJ+vn4ZkG6JR1d94VPnP3SrYEAWgnXC/qifYUq JlKDyqQUEy/7s0/Y+saWqmH2+rx+PLRMlVXGiULZmQ8dl5nm3WViIspyvgyZZH99o7Ov +ymg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si14290147pgi.304.2019.08.21.04.48.41; Wed, 21 Aug 2019 04:48:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727689AbfHULr0 (ORCPT + 99 others); Wed, 21 Aug 2019 07:47:26 -0400 Received: from mail-wr1-f100.google.com ([209.85.221.100]:46749 "EHLO mail-wr1-f100.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbfHULrZ (ORCPT ); Wed, 21 Aug 2019 07:47:25 -0400 Received: by mail-wr1-f100.google.com with SMTP id z1so1706375wru.13 for ; Wed, 21 Aug 2019 04:47:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zpJrwrxxvYiCGTqZfEB4v/W4+ZD+ic4TYT5QJIWQg24=; b=MlUsoHQ0Ed3igUywx6DF+R0hVR9jrkSDsQ5ZpF4zZ5FDO+PCjYz1Iw5UqaEszUBksN aXBLwNuHtrT8ri4QD6+p1rdSEiXCG8XJGEpNTZy/iFDUd68k8Hv+XB/rL9zVfs/cbue8 rDClF+KU4CCJ9mXSU6e3hKC+u0wwng5wFKHImf47bNiBVtZZQOD3ZnQeJMoqiP0zoz4K 3qIoE+uSaXMkx9nFKGSROcbauA1aqTSz66WSP3ehN1ZtlvWYiBzPAbAs61C1/vQy5thP pHqPvqEqm0loGjmlS0bdMWbeH0xZWtQUwNq5j4B9XxP7yzTKDbYEch/ig+gzg30NLxcD +NIQ== X-Gm-Message-State: APjAAAVBO5pw/W5TFpld41frg1/3EmlBSYuuW6AgSdDY+OpzCvJ/WrPB 3tPBTtIul1Yl60PSYNNdLucFUe9fiLSDyjSLU/kVEFUlXTuTqjlZruxa4o84nGzyUg== X-Received: by 2002:adf:ef07:: with SMTP id e7mr41792185wro.242.1566388044009; Wed, 21 Aug 2019 04:47:24 -0700 (PDT) Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk. [2a01:7e01::f03c:91ff:fed4:a3b6]) by smtp-relay.gmail.com with ESMTPS id p1sm385228wrq.74.2019.08.21.04.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2019 04:47:23 -0700 (PDT) X-Relaying-Domain: sirena.org.uk Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i0P5H-00070S-Dq; Wed, 21 Aug 2019 11:47:23 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 4CBF52742FCD; Wed, 21 Aug 2019 12:47:22 +0100 (BST) Date: Wed, 21 Aug 2019 12:47:22 +0100 From: Mark Brown To: Alexandre Belloni Cc: Li Yang , nandor.han@vaisala.com, Biwen Li , a.zummo@towertech.it, linux-rtc@vger.kernel.org, lkml Subject: Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w Message-ID: <20190821114722.GF5128@sirena.co.uk> References: <20190816080417.GB3545@piout.net> <20190816162825.GE3545@piout.net> <20190820182224.GI4738@sirena.co.uk> <20190821112142.GD5128@sirena.co.uk> <20190821112413.GA27031@piout.net> <20190821113029.GE5128@sirena.co.uk> <20190821113856.GB27031@piout.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="twz1s1Hj1O0rHoT0" Content-Disposition: inline In-Reply-To: <20190821113856.GB27031@piout.net> X-Cookie: Sic transit gloria Monday! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --twz1s1Hj1O0rHoT0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 21, 2019 at 01:38:56PM +0200, Alexandre Belloni wrote: > On 21/08/2019 12:30:29+0100, Mark Brown wrote: > > What's the mechanism here? It's a very strange thing to require. > The clock control is on the first register, then you have sec, min, > hour, day, mon, year. > To be able to set the clock accurately, you need to first disable the > clock, then set the time and date and finally reenable the clock in the > first register. This should be done in a single i2c write. Ugh, right. And of course it would be silly to put the enable register last or done some sort of strobe thing. --twz1s1Hj1O0rHoT0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1dL0kACgkQJNaLcl1U h9BTEAf/YlFxsc7WReXJQuZ/Rye8kuOEKdbkAyvoCO5qMHoHTI7tJ7JQWqXFRNRG PQkT/2cXa8Cun8QDL1q+dhU6VPWmJrBtoCnGLzKw8W4YpQAdWgbifOxxW5RqlzMK lrmWzOxIUgFgxFC3hXVEpKOMNA+qp3JPB1M3dOcdFpdSG1IjslckJuOZ9t8Gdom7 rUfY5hbhQG+s9AHSvb/E2AmrlQUdbG3zD27fQ6NaiHC7u+lydsTdxqTwC0AghjVt jL55LgHPDosJThjiYAtxtEHvDCvl06/9fXz/sZDETIKK+S1BpFlcj2FHtNpY8mMf weRwLGDzmZSjzCBgjjnB3v8Srf6bKQ== =r0gN -----END PGP SIGNATURE----- --twz1s1Hj1O0rHoT0--