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 B1B20C54EBC for ; Wed, 11 Jan 2023 02:17:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 94765856A5; Wed, 11 Jan 2023 03:16:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="qIxoyEjF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 024BE856A5; Wed, 11 Jan 2023 03:16:50 +0100 (CET) Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5731C856A5 for ; Wed, 11 Jan 2023 03:16:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf35.google.com with SMTP id l14so5968199qvw.12 for ; Tue, 10 Jan 2023 18:16:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8HaYXqDlNM+qkGdxCiV5LWFH15zsXBYjBjN/0Ap4jn4=; b=qIxoyEjFeZnS2spwVMF8nLv3YTaQwK732KNQ1afPZt4Z3B0xgAbeDk5nPQb6izMBUM N8uzLEPEDusGe8d4XyzAE0CbC7dIF2tCp06Dd2HKVj8Tx7Fdy5vvD84bqk2aPMyZThMF OqqqmHTFQjOGuPMkQALc+rrZcey8sporg41rs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8HaYXqDlNM+qkGdxCiV5LWFH15zsXBYjBjN/0Ap4jn4=; b=xB7O7i0dRtTh3LNF6EOCGkJDA0h4dANoiiiGp5KvJPxjzcgWY2rl5+PUAFG907aZIH MBre2IW2zXNF8TyXiA/DKgJjFaH0vNBeEij4S7VwSfe+8kzh4TC+UmMKMNlMefptWJRp Y6w5pNg1KNcM9vgl7A4h6gUFnX675BaDWXeiNpN3z8YNBgkQckGGlIbs6gLF0ffoRWZS zNrAb8H/vZnq7pf0HjdrELhtj73dCHNYm25Wdqwh7TLU94Ab01+FnLLG9YD0c5S0XZA1 znlE2aSHBTYeOOsKA/7liRJTdL1BjQPpZ1islrcyJLREK5isgmUXBrw12St95OkWVKs/ WzFg== X-Gm-Message-State: AFqh2kq0FrrU6SoahBSkOgcHCkZV0S3gKRS9wsuWvXsVOdx0X2hmob+J fso8x2upIsp8ixepWZlnJyr1ApYyCFEqk32aCXU= X-Google-Smtp-Source: AMrXdXs334gKVfpvyAtFu521EjratvA9dpIQga1eb341NpUzi6Afsh7blObbGs7jhsiyVkXJVutzCw== X-Received: by 2002:a05:6214:90f:b0:532:1c31:515 with SMTP id dj15-20020a056214090f00b005321c310515mr21311079qvb.35.1673403407076; Tue, 10 Jan 2023 18:16:47 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-2c2f-ce0f-8dee-7136.res6.spectrum.com. [2603:6081:7b00:6400:2c2f:ce0f:8dee:7136]) by smtp.gmail.com with ESMTPSA id q5-20020a05620a0d8500b006eee3a09ff3sm8228631qkl.69.2023.01.10.18.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 18:16:46 -0800 (PST) Date: Tue, 10 Jan 2023 21:16:44 -0500 From: Tom Rini To: Martyn Welch Cc: Dave Gerlach , u-boot@lists.denx.de Subject: Re: [PATCH 1/2] arm64:mach-k3 am625_init: Correct boot mode detection Message-ID: <20230111021644.GY3787616@bill-the-cat> References: <20221220183819.515667-1-martyn.welch@collabora.com> <20221220183819.515667-2-martyn.welch@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/Fhh0ZHthRCsgQz3" Content-Disposition: inline In-Reply-To: <20221220183819.515667-2-martyn.welch@collabora.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --/Fhh0ZHthRCsgQz3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 20, 2022 at 06:38:18PM +0000, Martyn Welch wrote: > The boot mode detection assumes that BOOT_DEVICE_MMC2 should always > result in MMCSD_MODE_FS, but MMCSD_MODE_RAW is also a valid option for > this port. >=20 > The current logic also avoids looking at the bootmode pin strapping, > which should be the primary means of determining whether a device is > being booted in MMCSD_MODE_EMMCBOOT mode. >=20 > Switch around the logic to check the boot mode to determine whether the > eMMC boot mode is expected or MMC/SD boot mode. From there we can look > at the boot mode config if in MMC/SD boot mode to determine whether to > attempt RAW or FS based booting. >=20 > This change allows U-Boot to also be successfully booted from RAW > offsets in addition to from a filesystem. >=20 > Signed-off-by: Martyn Welch Applied to u-boot/master, thanks! --=20 Tom --/Fhh0ZHthRCsgQz3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmO+HAwACgkQFHw5/5Y0 tywPUQwAtIbOhLEIsFAlfhRPXGXWgdRC8BXirUk34/7MWcpaYA6WVZrqQsup4YDM Wu2KoGqh0rJTqr/TgcUQspRB6g20kkuvBwvMUOdLuvDNqHf5gQ13FA2HWxsBLuCN NKmPvtdrP4Sg23BRv9J3l9W85FfKwsU0QEXQfv0OBNy0/LKYvFUle+4QxcdDcCU2 32MEh2jFmbBx9xiTOGGGNYV5hRovFip9cS+rNTy7V6ueAv3Ccy8Dzu2Bur6G8ciL HlOHpPKW6zjSB0/4/o3jdRuFmiShC1KtN9l0vIWkh8jA1ItcB2HxawOlrqqpxVHN OeeOqM1o4EBX5WcQFO2/NmWFAgyHjO8yxAeLXaNNeCICWrYwqYNV74AOS9ZUdY8F 1/IBQ6t35L074tDn2vOjhIdqt1kVdZaJqvSogfsDnmO8mk7wdv4lEtvDNIwMCa8A 3SrjKEzNYke5oqrZqqe8AfH5XnG1qy6OlmmwWB8NmZpX7l+FzwkOz67WOcvJ0DvE J0y4scnL =Ssnw -----END PGP SIGNATURE----- --/Fhh0ZHthRCsgQz3--