From patchwork Sun Nov 15 11:54:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Aujon Chevallier X-Patchwork-Id: 1400436 X-Patchwork-Delegate: trini@ti.com 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=intelibre.fr Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" header.d=intelibre.fr header.i=@intelibre.fr header.a=rsa-sha256 header.s=dkim header.b=NUTaK6Y9; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4CYsWV2zwvz9sPB for ; Sun, 15 Nov 2020 23:50:32 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8444C82541; Sun, 15 Nov 2020 13:50:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=intelibre.fr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="key not found in DNS" (0-bit key; secure) header.d=intelibre.fr header.i=@intelibre.fr header.b="NUTaK6Y9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A923822DF; Sun, 15 Nov 2020 12:54:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from mx-out-02.sud-ouest2.org (mx-out-02.sud-ouest2.org [87.98.220.65]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0B2C0822DF for ; Sun, 15 Nov 2020 12:54:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=intelibre.fr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=arnaud@intelibre.fr Received: by mx-out-02.sud-ouest2.org (Postfix, from userid 112) id BEA5527407F0; Sun, 15 Nov 2020 12:54:30 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mx-out-02.sud-ouest2.org BEA5527407F0 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intelibre.fr; s=dkim; t=1605441270; bh=vENQhE2Lfp+2K7gl5P6LKYzm17u6FTzCdlCOvbW/1s0=; h=From:To:Cc:Subject:Date:From; b=NUTaK6Y97Rzu3H8EVdOwNhVBTNBOCM5r0NfA9iKb9+lrqThbKpOjpKzazNA58aYsA JxZbvLd6IMxoQYZjwmLi5TNz0UrK0oNAYeFAOUQoplAyDLBZTThF3PMdr0bqsOTOjD hsxrz0xuY2okBtqG1Ge37C5Y/kBiVLes7afzCnEP1NVWhkH4tqZCjkl75bTAbBfg/E 6oAHwwqhptNx/zAsY4GfGzAazisFQ47BXnw8VItaV/3JFO3rxeOFhuk3KEqJn16YNP mXFvFSv4FSF3NH0OLaeW28ecrulPQwvfzenejxUFZDFVFyJzyR5Keo21jRDWxGUB1z mP3GzKSldRVEw== Received: from localhost (localhost [127.0.0.1]) by mail.sud-ouest2.org (Postfix) with ESMTP id E8E6518F625; Sun, 15 Nov 2020 12:54:21 +0100 (CET) Received: from mail.sud-ouest2.org ([127.0.0.1]) by localhost (mail.sud-ouest2.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kErMDIZUKf5s; Sun, 15 Nov 2020 12:54:17 +0100 (CET) From: Arnaud Aujon Chevallier To: u-boot@lists.denx.de Cc: albert.u.boot@aribaud.net, michael.opdenacker@bootlin.com, Arnaud Aujon Chevallier Subject: [PATCH v3] arm: vexpress: don't reset flags in board_init to avoid losing previous ones Date: Sun, 15 Nov 2020 12:54:10 +0100 Message-Id: <20201115115410.8747-1-arnaud@intelibre.fr> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 15 Nov 2020 13:50:14 +0100 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.102.3 at phobos.denx.de X-Virus-Status: Clean Re-submitted because of missing description and signed-off. flags reset in board_init caused bugs when executing command like editenv because the reallocated flag was lost. Signed-off-by: Arnaud Aujon Chevallier Tested-by: Michael Opdenacker --- board/armltd/vexpress/vexpress_common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/board/armltd/vexpress/vexpress_common.c b/board/armltd/vexpress/vexpress_common.c index 70f6cd80d5..8fea8ff352 100644 --- a/board/armltd/vexpress/vexpress_common.c +++ b/board/armltd/vexpress/vexpress_common.c @@ -55,7 +55,6 @@ int board_init(void) { gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR; gd->bd->bi_arch_number = MACH_TYPE_VEXPRESS; - gd->flags = 0; icache_enable(); flash__init();