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 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 EE457ECAAA2 for ; Sun, 28 Aug 2022 03:49:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 28FE6845BE; Sun, 28 Aug 2022 05:48:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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; unprotected) header.d=kernel.org header.i=@kernel.org header.b="AsFT5LHX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 286F484924; Sun, 28 Aug 2022 05:48:57 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0FA4D845BE for ; Sun, 28 Aug 2022 05:48:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8E151B80AB5; Sun, 28 Aug 2022 03:48:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A651C433D7; Sun, 28 Aug 2022 03:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661658533; bh=iYrhqrqbW4vwyxtHeqgpAH/IbOB/8RH0wuy+dJbHjaQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AsFT5LHXHoeP+74tvXNq/0jdjWVovKcSSWszs2tVEnZjjJyL22lse+ObDewfxcbF6 UDsDLlvgDhrDfjo0lO7AOUvFgdq/zF39I/+f2jRJD+lwEbzTUxpSyHdrtMhCibf99G iMDLM4WLv4x2v2axijP2+5xf7qdwVt0p+oiTk/z2z1gQIsFbo6p/IhilZvWdNFA3NU LMXdGqq0OG1NfgFLsFddLfliswyD8Wqp9ID30Nv6e/YgtAzAWvVAC50tjYanzRQbpQ nnD+0AnURT3WhalRvmH4dZE6sYwXUgrHNZksT8WoK7FU5I2F5A4qfE0mC90Q3pXt32 u4wSammedJgPw== Date: Sun, 28 Aug 2022 05:48:49 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Stefan Roese , u-boot@lists.denx.de Subject: Re: [PATCH] board: turris: Initialize serial# env Message-ID: <20220828054849.39f8742d@thinkpad> In-Reply-To: <20220827180630.31933-1-pali@kernel.org> References: <20220827180630.31933-1-pali@kernel.org> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 On Sat, 27 Aug 2022 20:06:30 +0200 Pali Roh=C3=A1r wrote: > Store serial number from atsha cryptochip into the serial# env variable. > U-Boot automatically puts content of this variable into the root device > tree property serial-number when booting Linux kernel. Refactor turris > atsha code and from turris_atsha_otp_get_serial_number() function returns > directly string suitable for printing or storing into device tree. Because > during different boot stages is env storage read-only, it is not possible > to always store serial number into env storage. So introduce a new functi= on > turris_atsha_otp_init_serial_number() which is called at later stage and > which ensures that serial number is correctly stored into env. >=20 > Signed-off-by: Pali Roh=C3=A1r Reviewed-by: Marek Beh=C3=BAn