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 4C9FAC19F28 for ; Wed, 3 Aug 2022 06:48:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ABB35840D2; Wed, 3 Aug 2022 08:48:22 +0200 (CEST) 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=1659509303; bh=vFKppi79Fw1DmVEb1fZxheGDdinVKm6v2GXiyRuLU9g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jZw/ur5dS43mUA8DTUwgViSRw88gJLE3Q8iakxX0crUotZ7XsxM0JW+s6/NspxP0I W6kw2WSRDlrhrRG6Ygc6fmyjXk4m522eYbhQVB3AHJ0deL2AIWr+LGtNestEroUOFM l8X7lHNkj08RtJyK9TNXGs8dAzQcwSs/tBdVPSEqQYl+xd4r8Thl2y3zt9Y43Tzy3d G5ETmNLkmJDvJsKd6YhHqt07Eua2GICXqjMpov+PGnew75cFgOeC7F070RnTEZZ7Q/ zC71XOdPqFoFyw8cy+soPDuI2p6z4Wd+shaEWCnrgrduJaSOb+VTobpp53MrTDaeLY ArrW+jUJXloAA== Received: by phobos.denx.de (Postfix, from userid 109) id 19AE1840D2; Wed, 3 Aug 2022 08:48:21 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [80.241.59.207]) (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 02335817D8 for ; Wed, 3 Aug 2022 08:48:19 +0200 (CEST) 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 smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (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 4LyMr368Jqz9sT0; Wed, 3 Aug 2022 08:48:03 +0200 (CEST) Message-ID: Date: Wed, 3 Aug 2022 08:48:02 +0200 MIME-Version: 1.0 Subject: Re: [PATCH] arm: mvebu: spl: Always fallback to BootROM boot method Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Tony Dinh Cc: u-boot@lists.denx.de References: <20220802095519.17352-1-pali@kernel.org> From: Stefan Roese In-Reply-To: <20220802095519.17352-1-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean On 02.08.22 11:55, Pali Rohár wrote: > BootROM boot method should always work so always add it as fallback method > to spl_boot_list. In case U-Boot SPI driver fails it is better to try using > BootROM than hanging as by default only one boot method is specified. > > Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan > --- > arch/arm/mach-mvebu/spl.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c > index 13c99913c380..bfcba2e73bab 100644 > --- a/arch/arm/mach-mvebu/spl.c > +++ b/arch/arm/mach-mvebu/spl.c > @@ -271,6 +271,13 @@ u32 spl_boot_device(void) > } > } > > +void board_boot_order(u32 *spl_boot_list) > +{ > + spl_boot_list[0] = spl_boot_device(); > + if (spl_boot_list[0] != BOOT_DEVICE_BOOTROM) > + spl_boot_list[1] = BOOT_DEVICE_BOOTROM; > +} > + > #else > > u32 spl_boot_device(void) Viele Grüße, Stefan Roese -- 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