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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C4A2C433EF for ; Wed, 6 Oct 2021 16:56:17 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AFFD4610E5 for ; Wed, 6 Oct 2021 16:56:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AFFD4610E5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de 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) 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 Content-Transfer-Encoding: 8bit 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) || \ -- 2.26.2