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 60804C433F5 for ; Thu, 4 Nov 2021 07:48:29 +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 CB0AC61183 for ; Thu, 4 Nov 2021 07:48:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CB0AC61183 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 1A66383675; Thu, 4 Nov 2021 08:48:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636012107; bh=Lhtlvx73pLo/1r71YTo9iXGpkBFq27kgGKTJGNrvcNc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=zh8kT7ZWbycNpEJFg3bW7jVi8v1WkChFsp0uEo9z46q+kBokMb9FaGFKmj3RFZt2U lwl4pJCaFeM4dsov5N762470uon9HmbvxZxA5aXHW3FfLncc2ai5GkOpj33dhg0oNX 5wwjJjRjB5ztCTwSu5b8zJTeh23jj5s7Fjq61e+x0dQaPjCObhYY1qnJFDJABWNE4Z Hrz241l9qR9q5InxURsPBik54o5+xbFYkx1GSECjfaJFwecXjNwyqTi0U43KP9aWWi DnaaKW2kZ6oyc3uSLh9oDFdrhe9lFNZ0rqSf6V74o2/FwoYc1xMWKw4wE/gTjoDfQV JVE5IMbX8JcnA== Received: by phobos.denx.de (Postfix, from userid 109) id E755283675; Thu, 4 Nov 2021 08:48:25 +0100 (CET) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (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 5FAFD8368E for ; Thu, 4 Nov 2021 08:48:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4HlG386jXMzQjf3; Thu, 4 Nov 2021 08:48:20 +0100 (CET) Subject: Re: [PATCH v3 5/6] sunxi: Avoid duplicate reset_cpu with SYSRESET enabled To: Samuel Holland , u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Bin Meng , Heinrich Schuchardt , Sean Anderson , Simon Glass References: <20211104035516.28268-1-samuel@sholland.org> <20211104035516.28268-6-samuel@sholland.org> From: Stefan Roese Message-ID: <5677c8a2-5bad-77ba-512a-80293689ecac@denx.de> Date: Thu, 4 Nov 2021 08:48:17 +0100 MIME-Version: 1.0 In-Reply-To: <20211104035516.28268-6-samuel@sholland.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B6B291389 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 On 04.11.21 04:55, Samuel Holland wrote: > The sysreset uclass unconditionally provides a definition of the > reset_cpu() function. So does the sunxi board code. Fix the build with > SYSRESET enabled by omitting the function from the board code in that > case. The code still needs to be kept around for use in SPL. > > Reviewed-by: Heinrich Schuchardt > Signed-off-by: Samuel Holland Reviewed-by: Stefan Roese Thanks, Stefan > --- > > (no changes since v2) > > Changes in v2: > - New patch > > arch/arm/mach-sunxi/board.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c > index b4ba2a72c4..3ef179742c 100644 > --- a/arch/arm/mach-sunxi/board.c > +++ b/arch/arm/mach-sunxi/board.c > @@ -346,6 +346,7 @@ void board_init_f(ulong dummy) > } > #endif > > +#if !CONFIG_IS_ENABLED(SYSRESET) > void reset_cpu(void) > { > #if defined(CONFIG_SUNXI_GEN_SUN4I) || defined(CONFIG_MACH_SUN8I_R40) > @@ -376,6 +377,7 @@ void reset_cpu(void) > while (1) { } > #endif > } > +#endif > > #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) && !defined(CONFIG_ARM64) > void enable_caches(void) > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de