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 B96C8C433EF for ; Fri, 8 Apr 2022 08:11:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D712183DE2; Fri, 8 Apr 2022 10:11:39 +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 BC5A183DBF; Fri, 8 Apr 2022 10:08:03 +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 5737983DC5 for ; Fri, 8 Apr 2022 10:07:50 +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.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N4965-1o2cLL1Ei9-0108Ko; Fri, 08 Apr 2022 10:07:46 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Denys Drozdov , Marcel Ziswiler Subject: [PATCH v1 12/24] apalis-tk1: avoid save environment unasked Date: Fri, 8 Apr 2022 10:07:07 +0200 Message-Id: <20220408080719.342072-13-marcel@ziswiler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220408080719.342072-1-marcel@ziswiler.com> References: <20220408080719.342072-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:a3a5/Ia3xun2h1xellyFljdwW5274dTGwAalygzrVVKryPbXHtI Vo/TSM31cVMs5KM3BhgFeVIqDs44ydMqQvrdS+dJr/t4+mmsUNJDbBnOHxybc767XWZIuVS dFI5ZBzq+JJhQZN1/3bhumOwqiE1a44eNWPEVX7nBXxVvNtuD0AXAafh/tgoxzlpCn5KTdj EN3xv3/op2bQ/nvnrGIIA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Yq049929woc=:rtt8spI6oyFjJBmB/M9zjD BQcPB6B5pz9hqHkTxqtw8XyimwwsoR41zl7HvuEBAKCiEQf/OP0TCIp9xQ44pibUkWrwfKGN7 beIH/2mSacmwcMNweYRNB6ijo8U/n62YbPNRgLtElSYcHDpmUr3cr9ShxTqFzHjf3bxpDX/dB /LIzRx92DGJ8Uy6b6a3wBQIrh2QBW8wdTAl+laNGlGDJ0YbafuOQz9VMM7IIq36q60kEpMQaw 5Us3rC/FcLlq6yyWZyJ6rgWecIn7m/Sx6u0ML58OlZswnwoz7ILeXp1uvmHdxW4XxdheWNa5z ox8xTWXjvjdirB0rGOM0q/JW2blLntnfExVYznASsSCemQP5WuD6EdGlOwrw7NJuIQknjrSsE iIJSsjKXh21+X+X1Rr/2MxwqU80TUybRwky7MH7s80+J2izEnQFrIWT373P/EAFCFYnfdNANq HJMAZC45oaA2R/29XLprotxWMysvBJE0SRk6Geh1iD2UNlLKlW+tn6cTSaW42m8qlNE9B+7/b tlyaR7t+7Z0CIaSvd5tRIKHaTk/Xqjhm7T6l9zQujFVYp2nJseFRB8Qmi5LbPOVW/HoPgiGlH D7iGnW08XMZgAES1ZTteHj2UH8uL7G1Zg2mr4RDWafRv2swpGI2A4+uw19TpcXjlu+oomanM4 OVrs4f/yx4OXaiwlt/f9hfJ8A86CEwm/R/er7INlOm2NAJ6k4A4peT4wPYOh24DRdhvI= 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.5 at phobos.denx.de X-Virus-Status: Clean From: Denys Drozdov U-Boot should never save the environment unasked. This also avoids storing broken fdt_module to flash. Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- board/toradex/apalis-tk1/apalis-tk1.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c index 2769b546010..ccf665b2118 100644 --- a/board/toradex/apalis-tk1/apalis-tk1.c +++ b/board/toradex/apalis-tk1/apalis-tk1.c @@ -71,9 +71,6 @@ int arch_misc_init(void) env_set("fdt_module", FDT_MODULE_V1_0); printf("patching fdt_module to " FDT_MODULE_V1_0 " for older V1.0 and V1.1 HW\n"); -#ifndef CONFIG_ENV_IS_NOWHERE - env_save(); -#endif } /* activate USB power enable GPIOs */ -- 2.34.1