From patchwork Wed Oct 6 16:55:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 1537285 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HPgZp5l1Zz9sR4 for ; Thu, 7 Oct 2021 03:56:18 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C92268281E; Wed, 6 Oct 2021 18:56:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 559828281E; Wed, 6 Oct 2021 18:55:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) (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 AF66083297 for ; Wed, 6 Oct 2021 18:55:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.toradex.int ([66.171.181.186]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Le6X4-1n8LVZ03mG-00pteM; Wed, 06 Oct 2021 18:55:49 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , Denys Drozdov , Marcel Ziswiler , Igor Opaniuk , Simon Glass Subject: [PATCH v2 2/5] toradex: configblock: fix interactive mode it handling Date: Wed, 6 Oct 2021 18:55:33 +0200 Message-Id: <20211006165536.387724-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211006165536.387724-1-marcel@ziswiler.com> References: <20211006165536.387724-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:e/+Wvjdk23AxiM8aVvp8Lo9Ibq2BKTtbR286DGrbEml+2OjC2Cm wqC84vHwcFDmMIok4QO8iAxCJl9AOe0qqZ9rL36fGSfUpGbCoKJyirI0LbSqAlEAAYtduhi IfyDpaDcZEzfwA6O1rl+kOLTswyuB7phIUKQKYZEFTTupdGnInotV5I1S8nuBD7EQmDs/1m jTGCIdhZ4FIMobfobtUIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:OSUe9vv5nTA=:1RUq6g59rAOwpuNWhA8L3i FrVbD1G2+FU6kfgBUUZ4a5p3KIvAODSHDGlnPoCf/XKanhN/YiB+vvkfc+nNR3KXES8CmV0+N 82Y0AcgYBBCCxC7+JSK95iNlF9xZoiQDBe7+jTmDe+YWuCmqRMzxMBkAC8qclztBPuBy21IK0 u8jbKmRQTyKnMebgFz8vexE4FvCxJ2qxZVB0J/9n8/Ss6QKFs8fG2SknRBJOpOmKr8bJmSk30 tp2iUihfYeq/uBpx+7v+lNvH2dmiVb9WLC4x3lTpmjKgAWFZzf4SOFfKXv0wQvfqG10li+9g0 D0IvHeEsK+u8gCaiW6pRxjI4Db32CyWn3sa8aEKwW4BVuMoFbOcKVHn/Z9EIwALtE458w4+AJ vTxglgcAfrXoX7XeAXoAy6pqiJF776YaEZUPB9MOv9YGQ/poOOyY61DUIpTd4MtRXIXK1KzUN W6g/JBxV5vOMQ3ZMNJyVo7xEVjeBYRnL8oiaFP5/lRmhuN4KZB44D3kuGGg65DMQh9UUTDe1S qDkO3rMTvjdEKX8MyhDdQkVs7DGGGyMnloHAO4yQRIdQWrN7BM/r21svHJc1FyrIw60zWyKjg df4vPEIy2gzFrgKaHry4AoXSuXcfEU7mNww0Yzo5hFkCpQ3w488q5xe1O1vXndEWdrge7ca9b 9a7T4AKiexyvtwhIFCF3mFq3gSJ58DUtfEM/Wl9jD0b8aIzEqMPVGIIcCjzij9vlrr+CGVEOe +0iwpvwrhIbX/yzdT+iaEAEZTwsdcyNJylA83g== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean From: Denys Drozdov Restore "Is the module an IT version? [y/N]" for "cfgblock create" interactive mode command, which was leading to invalid detection of 0051 Colibri iMX8DX 1GB WB module; Fixes: a5b5ad4d859b ("toradex: tdx-cfg-clock: add new i.mx 8m mini/plus skus") Related-to: ELB-3482 Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- (no changes since v1) board/toradex/common/tdx-cfg-block.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c index fe47cddad80..ad267812267 100644 --- a/board/toradex/common/tdx-cfg-block.c +++ b/board/toradex/common/tdx-cfg-block.c @@ -368,7 +368,10 @@ static int get_cfgblock_interactive(void) if (cpu_is_pxa27x()) sprintf(message, "Is the module the 312 MHz version? [y/N] "); else - it = 'y'; + sprintf(message, "Is the module an IT version? [y/N] "); + + len = cli_readline(message); + it = console_buffer[0]; #if defined(CONFIG_TARGET_APALIS_IMX8) || \ defined(CONFIG_TARGET_APALIS_IMX8X) || \