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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17F8BC636CC for ; Wed, 8 Feb 2023 08:32:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 16DC085E16; Wed, 8 Feb 2023 09:32:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="efi46Msy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C74585E25; Wed, 8 Feb 2023 09:32:44 +0100 (CET) Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B7540855BA for ; Wed, 8 Feb 2023 09:32:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 28B994F; Wed, 8 Feb 2023 09:32:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1675845160; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y3RgTJLKAm9DK2CJjnvcqXgKruOViYqc1pt9VDEeScE=; b=efi46MsypyGVVn8ROonesQ8DqNLthi6i8DmEjLmrM7vybezpIn5TxQHOigMPzadhnrDl+w 4/8wzI01OMMyllnIxbfUwR/c5K8cVRkw/iZ/NV7hn7PsTQ3wob546F8AJgnzcyMI+2XPzy FAlRWYsG8zH3La8Yh24PALUUjz81KY9Inkm1zPuodptHdnTFv7S3uo2etk3mcs7AxboiTT wbBQFV4zeUWl3Ew6/JFfltJo/Co5vvZwiR3H5QR3klXMvxgNhRQSfmh+l2J1zlJEjj7k3V 70RkGcwOSqx9UHWKBpjmmqEPU+i+N9pOGC38dxNVPTqTAn46JHE6JAXDMFFwlQ== MIME-Version: 1.0 Date: Wed, 08 Feb 2023 09:32:39 +0100 From: Michael Walle To: Oliver Graute Cc: sjg@chromium.org, hs@denx.de, u-boot@lists.denx.de Subject: Re: [PATCH v1] RFC: rtc: rv8803: avoid bootloop on low voltage of button cell In-Reply-To: <20230208073840.10329-1-oliver.graute@kococonnector.com> References: <20230208073840.10329-1-oliver.graute@kococonnector.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <1728c1a401e0915207a0a43e4c85a97e@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Am 2023-02-08 08:38, schrieb Oliver Graute: > if the rtc button cell is on low voltage this can result in a permanent > bootloop in u-boot because V2F Register is permanent set. > > ### Warning: temperature compensation has stopped > ### Warning: Voltage low, data is invalid > resetting ... > > With this patch the bootloop is prevented > > Signed-off-by: Oliver Graute I'm curious, how is the call tree here? I don't see the dm_rtc_get() being called during boot. Basically, you are now just ignoring the error. -michael