Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D520C4338F for ; Mon, 16 Aug 2021 13:14:14 +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 8D229604DC for ; Mon, 16 Aug 2021 13:14:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8D229604DC 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 4852B82E7A; Mon, 16 Aug 2021 15:14:09 +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 BE4A682EEC; Mon, 16 Aug 2021 15:14:00 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) (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 20BE082D52 for ; Mon, 16 Aug 2021 15:13:54 +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.cardiotech.int ([81.221.233.3]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MQgmZ-1mf5we0ypZ-00U1Zk; Mon, 16 Aug 2021 15:13: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 v1 2/5] toradex: configblock: fix interactive mode it handling Date: Mon, 16 Aug 2021 15:13:32 +0200 Message-Id: <20210816131335.142993-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210816131335.142993-1-marcel@ziswiler.com> References: <20210816131335.142993-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:fhqQbWsFrYeDuPluHM1srVUWzvpapBuHxXaggc8SpFoT9lHu6g6 hYuSipXzgub60rxfCb64q7CFZzEGc8LEHGPn7uYelO9f7RjsQziLjLar9QpcGIeC8sNpiWw z3WhqLcfUxsQ2XUL/kPAx/r+Qnp6RJLIXhg1XD+hxm4+uaj1BWYCKwSiAVYySlX54S3UpIX 8sxnp1h0hjGPp2Tc2Hu4g== X-UI-Out-Filterresults: notjunk:1;V03:K0:2WfMMBliG0k=:8HIGGZorqpi+LrNuUfKVW3 3hWYdC6eBraTvYHkADvfhsZiRuFlAN0YrhhozxKHgv4G6GIvotIATqWEYy4TXLYz9+4IHmiH4 YnkIXz/dl0wZRY6+upjIlccBRkZ/RqQUbw2Qhm0RZxh0l+wwyTvekpjYAwgIvPRkKgkeKwsQx XdeS8XdAdFZbLNiew4T4FJ+LlQzeCz7WshnsrUH9Mxl4wtilzmg4crGdqocD81iO9CxcCFTL1 xjXcKPlNWyMiya5HsgYMJ2i+n5x4wwjgBgqzE+WEAP2Mk6ojxhkNUk1DvUeiTyw6zuvTF2j0e gqqarFyxSrWRhPwjnO96c10ngWGZ2CGIoLmk6mjigTehFlbfSXpGQLxHTGSfkU/pUpMArJa6T iTlVPx2yhIuQOvYUeeTAnMoaDvb0TsrjA5mjuN95P8G0CNBdoWrk9Cb72fhrbV5rhyW4njnQg zkntanAiWVGoGMn3suB73JBYLZpWQfrZs/OqD8dHs4qUAFZIzlGoLboS8GjmE5cUzfPuIk0GQ iWowfvo/8dHaDUWKC3OJO9NXN5ORKJDabcGVQOE+YB4iltyoIDygxBnStgeVeP9fk2hgW9txh ibotAJnVflI14i5JgbnQskC2IPxTJ4RTYYs+3jFpLzC0m2bH8t6Nlk1mWEVhM/lVFPgDHnKaw 78AUbOxyJ774YL6BlZCeCF1lgJb63X6mmuTiZHopZSwlgMk1dcok68txxgz5pFqXu5OA0p1lF CABAA/m/hJSoHHPgk+b/npcuE271APHkSWuuN5TBHZgttpALw653Yz7GFlS196G3M0d6Al1EK T8uJy94h8CPEAmUrk7Qevw/mEdfBYvR10iIRVj7w5OYqXqv1dQlgTH6OYf8Ix/qs/UeJ5te 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 --- 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 e4f9a0db914..1295f389896 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