Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2658790pxb; Mon, 17 Jan 2022 03:07:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJypFAtXKkZTaa28Id2WIpmTTcmN8R+YdZAA+PPMzsC14mVjDuszPMVRSxr4IVGoxuem5CMm X-Received: by 2002:a17:90b:3906:: with SMTP id ob6mr34109226pjb.170.1642417671542; Mon, 17 Jan 2022 03:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642417671; cv=none; d=google.com; s=arc-20160816; b=qtFmr061wcu1vmFQkBlnhaYsErtlnx3bKAR3dLLxoJemyrGMba7brYgIYkEPqULZSH CaYTX01Lqsq6/HoZ/cNXmMYpbATTI8OamvQ7F5HHCBhK++LiKlbfWGDrji56YxVt2pgc yGyPY/RiQiJJ0xmoR1B1iQgkRsS675+9Xr8kQq4kFpG8nUzMkxaNIlvmfyClzPB6O5oz 6B7lV+fRa5KdcFJLkYSQVudGxvGcSJUz2bKe9hfcBKgeIMfve7bJEouvDePx+8U9KkmK KqzGATpbE36OnhuDprI2FHcv553HZKsOxRPPEy6wEQ4xy2stHydPzsK7tiUZPnE2cjj/ xb3Q== 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=f75H83kffU/iHBqLOl1mnzDCqOBM4uuOtlLgnDlHbMg=; b=oAUCQDMpGx6gQO/KBPQbkwPX3jOLvK20DpnsPPHUcZE2R3s8tErjboPBIOgs20cvp8 r6PyD5QjuD5WRS8VTfukCZgMP+IlcCR/dmdq3KlSoqPsg1eTwm3Ii4tO/V34myS46SlR TQXS2CB/28IpYad02yiUXcvIOkDKXOHFLerwwMePVGH742ZeQuHfq3wUrNzdhHRt0BLP JpB4HyG+DY9NwMFTjHvycuDwlW1Vm0/3aRbbbIysfsXQOqw3L2zQTsAmQOttL0dDfUkz jSvb7IMRf8h4C5O+0WtnlU3KkoRz0Ho5h5IlQwwaX57WX4DfOrPZW1MFF3h0nh/YUfI6 BqEw== 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 e11si17551088plh.415.2022.01.17.03.07.39; Mon, 17 Jan 2022 03:07:51 -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 S233897AbiAPW61 (ORCPT + 99 others); Sun, 16 Jan 2022 17:58:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbiAPW60 (ORCPT ); Sun, 16 Jan 2022 17:58:26 -0500 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84E9DC061574 for ; Sun, 16 Jan 2022 14:58:25 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5B1F040002; Sun, 16 Jan 2022 22:58:22 +0000 (UTC) From: Alexandre Belloni To: Riwen Lu , a.zummo@towertech.it, e@80x24.org Cc: Alexandre Belloni , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] rtc: cmos: Evaluate century appropriate Date: Sun, 16 Jan 2022 23:58:21 +0100 Message-Id: <164237389104.3519935.14751133795537334588.b4-ty@bootlin.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220106084609.1223688-1-luriwen@kylinos.cn> References: <20220106084609.1223688-1-luriwen@kylinos.cn> 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 Thu, 6 Jan 2022 16:46:09 +0800, Riwen Lu wrote: > There's limiting the year to 2069. When setting the rtc year to 2070, > reading it returns 1970. Evaluate century starting from 19 to count the > correct year. > > $ sudo date -s 20700106 > Mon 06 Jan 2070 12:00:00 AM CST > $ sudo hwclock -w > $ sudo hwclock -r > 1970-01-06 12:00:49.604968+08:00 > > [...] Applied, thanks! [1/1] rtc: cmos: Evaluate century appropriate commit: ff164ae39b82ee483b24579c8e22a13a8ce5bd04 Best regards, -- Alexandre Belloni