From patchwork Thu Sep 10 20:55:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 53395 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id 43D3122DC0 for ; Thu, 10 Sep 2015 20:55:32 +0000 (UTC) Received: by wicuu12 with SMTP id uu12sf11665033wic.2 for ; Thu, 10 Sep 2015 13:55:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=9LKxKcsMwXEY0XpGTaCJrEbUw9cfuwESGzF8C//ppdQ=; b=KeH5NJFzUZBitphYXrdllN3juVbBlaqX3dYHa1lBQoZil3ovx2dgaUj/1VPQoM9Ige QqqvFuxEUmx2h6VA65KlnWcntEqiGZIpNv+nc3kw+3jMcHaf8KAxapGnFcVJbj9J4x+V OH2PcDQm+ISssqcWOZ1dIfXrqUGZA7P3w6YNYLJXZPlLUN+9tlVxwWf0VxHusfQ3411L penR1324SaeMfIH7eXTcZ1rexrMVSVYF1AByOlSQ966+d6uqFb9ka4xbnxBKxmKF8rwH 6ADzwhz1BT+jjyU1C0fB29rAhDgeiFUsdZRmrRqFWAZx/VpqD2KiUNtsap8hWbfQc35Q z2tQ== X-Gm-Message-State: ALoCoQlehZkOpwaaUZtWjK9K7rKnBbzKTheu2JzwESdwV4a0LhyzhOHFPFHD3b7KB9W+MJbyGufj X-Received: by 10.152.27.10 with SMTP id p10mr10315273lag.1.1441918531608; Thu, 10 Sep 2015 13:55:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.232 with SMTP id 8ls229778lap.103.gmail; Thu, 10 Sep 2015 13:55:31 -0700 (PDT) X-Received: by 10.112.156.69 with SMTP id wc5mr34133600lbb.53.1441918531466; Thu, 10 Sep 2015 13:55:31 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id a19si11550771lbo.175.2015.09.10.13.55.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 13:55:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lahg1 with SMTP id g1so5810057lah.1 for ; Thu, 10 Sep 2015 13:55:31 -0700 (PDT) X-Received: by 10.112.156.167 with SMTP id wf7mr10336696lbb.88.1441918531374; Thu, 10 Sep 2015 13:55:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1196206lbq; Thu, 10 Sep 2015 13:55:30 -0700 (PDT) X-Received: by 10.194.10.165 with SMTP id j5mr77956924wjb.147.1441918530812; Thu, 10 Sep 2015 13:55:30 -0700 (PDT) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com. [209.85.212.177]) by mx.google.com with ESMTPS id bd6si13779797wib.116.2015.09.10.13.55.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 13:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.212.177 as permitted sender) client-ip=209.85.212.177; Received: by wiclk2 with SMTP id lk2so36952675wic.1 for ; Thu, 10 Sep 2015 13:55:30 -0700 (PDT) X-Received: by 10.194.113.170 with SMTP id iz10mr73849078wjb.58.1441918530563; Thu, 10 Sep 2015 13:55:30 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by smtp.gmail.com with ESMTPSA id s9sm17508216wjy.16.2015.09.10.13.55.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Sep 2015 13:55:29 -0700 (PDT) From: Peter Griffin To: u-boot@lists.denx.de, trini@konsulko.com, sjg@chromium.org, albert.u.boot@aribaud.net Cc: Peter Griffin Subject: [PATCH v2 5/8] ARM: hikey: Remove resetting gd->flags in board_init() Date: Thu, 10 Sep 2015 21:55:15 +0100 Message-Id: <1441918518-25629-6-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441918518-25629-1-git-send-email-peter.griffin@linaro.org> References: <1441918518-25629-1-git-send-email-peter.griffin@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This causes exceptions and other strange behaviour when enabling CONFIG_SYS_MALLOC_F_LEN which is required to migrate the serial driver over to DM_SERIAL. As GD_FLG_FULL_MALLOC_INIT flag gets reset, after relocation we don't end up using the full malloc which ultimately ends up causing a synchronus abort. Signed-off-by: Peter Griffin Reviewed-by: Simon Glass --- board/hisilicon/hikey/hikey.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/hisilicon/hikey/hikey.c b/board/hisilicon/hikey/hikey.c index 8c1271b..9948747 100644 --- a/board/hisilicon/hikey/hikey.c +++ b/board/hisilicon/hikey/hikey.c @@ -269,8 +269,6 @@ int misc_init_r(void) int board_init(void) { - gd->flags = 0; - return 0; }