From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F375AC636CC for ; Tue, 31 Jan 2023 12:00:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230032AbjAaMAU (ORCPT ); Tue, 31 Jan 2023 07:00:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbjAaMAS (ORCPT ); Tue, 31 Jan 2023 07:00:18 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CA194C6F8 for ; Tue, 31 Jan 2023 04:00:14 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E32CBFF806; Tue, 31 Jan 2023 12:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675166413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6RhwNaU3AcboHPO+aH8RjCjZsCLK/HntuH+4aTTCis8=; b=k4gHghVT0zW/CTminBRkDdb8e4w6pV9RQEQcvFqqWrEJCMtrYDHjw8OfMouUvCATtadeVv Fspp2lfr/uz7ZYGtCpzlQDNp0uzuqiBPP/lKMvvA4LXXbsSjbA8eZpgQtKLesnZlW8zsL9 TEMYEjLdyDmftTFOIjXY5hWoxzfeXVGuilTmGvM27lBnH2B2uZwIzO8AmWP/keCoUhS6Km IvH8xB4lCeFVkm6koSv0mBup+CrM+OsrcZc+0y8jGED+VunHKXtxhGB9UkZiKuw7FiOxKP sq2zWgINC140JebSI2Ruf0i8zQnlwcJ7ps9hmz/RvgKYcqpNFjjkc07RpJl3KA== Date: Tue, 31 Jan 2023 13:00:12 +0100 From: Alexandre Belloni To: Marc Kleine-Budde Cc: Sascha Hauer , linux-rtc@vger.kernel.org, kernel@pengutronix.de, Alessandro Zummo Subject: Re: [PATCH RESEND 0/2] rtc: rv8803 patches Message-ID: References: <20221123095527.2771434-1-s.hauer@pengutronix.de> <20230131081955.ke2larva6ftm5v4j@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230131081955.ke2larva6ftm5v4j@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On 31/01/2023 09:19:55+0100, Marc Kleine-Budde wrote: > Hello Alexandre, > > On 23.11.2022 10:55:25, Sascha Hauer wrote: > > This series has the remainder of > > https://lore.kernel.org/all/20220426071056.1187235-1-s.hauer@pengutronix.de/ > > which was partly applied. > > > > Alexandre, > > > > Last time this series was send you asked if this series fixes a problem > > we've really seen to which Ahmad answered: > > > > > The kernel message > > > > > > rtc rtc0: invalid alarm value: 2020-3-27 7:82:0 > > > > > > listed in the commit message is something I actually ran into. There > > > was no v2f set then. The customer has also variously observed bit flips > > > independently of v2f: During EMC testing, electrostatic discharge at developer > > > desks and even in the field: Suspected causes were lightning strikes in the > > > vicinity and the switching of larger inductive loads. > > > They're very paranoid of logging invalid timestamps, so we'll keep the patch > > > anyhow at our side, but I think it is generally useful as well: If we can't > > > set an invalid alarm time by normal means, but read back an invalid time, > > > something may have corrupted other memory, so treating it as a v2f is sensible. > > > > There was no answer to this. I would be glad if you could take this > > series. I would understand though if you say that this problem is too > > esoteric to fix it upstream, we would keep the patches locally then. > > Please just say so, it would help me to get the problem from my desk > > ;) > > Can someone take this patch series? If not, what can we do to get these > changes upstream? I'm going to take it but this may silently break existing users with a niche use case. Also, this check will only happen at boot time so I'm not sure there is a huge benefit, unless your customer reboots the platform often. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com