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 4FB8BEB64DA for ; Tue, 18 Jul 2023 13:59:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D09F686704; Tue, 18 Jul 2023 15:58:42 +0200 (CEST) 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="OuFgzEJ1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 97417866B2; Tue, 18 Jul 2023 15:58:30 +0200 (CEST) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (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 D6357866B2 for ; Tue, 18 Jul 2023 15:58:19 +0200 (CEST) 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-yw1-x1131.google.com with SMTP id 00721157ae682-57688a146ecso58970077b3.2 for ; Tue, 18 Jul 2023 06:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1689688698; x=1692280698; 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=LJ2M1GCz18qpDvdyLzO5Q4BK2oXcWq7zkLmzHGH0NcY=; b=OuFgzEJ1RJqM02qmOw/Vg9qfz4rsOmfoLyUmGxcfqgxYlthmvno9nzqNiK6oSPbGks 6er4m9B8sTrUYkGrKK5K4fY3Ya4hkFb2RLdWK/LbxU6ZZF7FaeGAlU3/Lg+F4D7/SU3p QlXdOfwRh668V9mpWFQ5pxTASxySIYRt9eS3I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689688698; x=1692280698; 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=LJ2M1GCz18qpDvdyLzO5Q4BK2oXcWq7zkLmzHGH0NcY=; b=jM7gegKEPJGz9bthVCc4j/TYEs4vSdo+27mhMJpU3oD/puBXm0Jkh0tkptfnWdiA2P 1MqdAa1Z7PuorJ0+OcLdSMc0pL5sSUUlWnb51g1kEK3D/eNYxD55BS/YI5AFDq8qULX6 d3/gi9aFXZnphY+v0YDqV8iJbfTFDJH7U7O7rvJ18NYjdFklxVYIOgef6iaXiIHt49NC 7WVkz97AlIxsaiHSrubL2f5vY6/6MchvlL1q6UVGiucU1fyh517nUr+/M2JUudPWGACe vEpv44Xv2n2gDpdgM0eP3fdUkTPbbFS8jkmA/qc9EdqcHNOKI6hd0zNJ2Ei7+jxJrgYi 5pZw== X-Gm-Message-State: ABy/qLaMXyJbP5OiTocevvOpLENZncYA5IEfI2AqQiNMkWKaY7szDKgo YisyBbHDdYGJKDS0I1tG8H+clg== X-Google-Smtp-Source: APBJJlEBs45ite7zsLmz5Plw3cOF5JTjap87ArlCLjlrl7DeGNaJHDrxISRhMx/vIeJmxspAF9C0qQ== X-Received: by 2002:a81:5455:0:b0:577:3b66:441 with SMTP id i82-20020a815455000000b005773b660441mr14873526ywb.50.1689688698626; Tue, 18 Jul 2023 06:58:18 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-e1d8-58e7-e10a-a96d.res6.spectrum.com. [2603:6081:7b00:6400:e1d8:58e7:e10a:a96d]) by smtp.gmail.com with ESMTPSA id u75-20020a81844e000000b0057a44e20fb8sm468598ywf.73.2023.07.18.06.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 06:58:18 -0700 (PDT) Date: Tue, 18 Jul 2023 09:58:16 -0400 From: Tom Rini To: Joshua Watt Cc: u-boot@lists.denx.de, Igor Opaniuk , Sam Protsenko Subject: Re: [PATCH] android_ab: Add option to skip decrementing tries Message-ID: <20230718135816.GR1670569@bill-the-cat> References: <20230623220556.2864681-1-JPEWhacker@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/qlCiJrKe/c3lb0a" Content-Disposition: inline In-Reply-To: <20230623220556.2864681-1-JPEWhacker@gmail.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.8 at phobos.denx.de X-Virus-Status: Clean --/qlCiJrKe/c3lb0a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 23, 2023 at 05:05:48PM -0500, Joshua Watt wrote: > It is is sometimes desired to be able to skip decrementing the number of > tries remaining in an Android A/B boot, and instead just check which > slot will be tried later. This can commonly be be the case for platforms > that want to A/B u-boot itself, but are required to boot from a FAT MBR > partition. In these cases, u-boot must do an early check that the MBR > points to the correct A/B boot partition, and if not rewrite the MBR to > point to the correct one and reboot. Decrementing the try count in this > case is not desired because it means that each u-boot might constantly > ping-pong overwriting the MBR and rebooting until all the retries are > used up. >=20 > Signed-off-by: Joshua Watt Applied to u-boot/master, thanks! --=20 Tom --/qlCiJrKe/c3lb0a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmS2mngACgkQFHw5/5Y0 tyxjkAv9FFx0WBYTl4gmpTnLBc7beSaVsBticIX+MRyAR0RB53+Pfh/d5GzG5lP/ u2ZXPdqRXbsPA48DeqxFJksfnTDCNvrpWPYQFiiapxr53Ez8tu09KEjycVlPfkSa ElK4Lvb9j4/Sv5HgSlPQ6UStx+p2cwyt1AubrfBoAgJwDcX4U+56s1Y08ywLxrIb hH3Dp7IUVQ+CWFenSIyaO2iD2ErKMyBSsKjbFY6tD/8B+2DTVNAHmO2Q8Kv5mhze EntBJxzWdILQTjo7iPeHLa+1nDTwDHew35V4GkyRkqAnK16OEag9KHVgK2L24La3 9PJKgoSETrfUiR9BMUOqLcFrgNBf1DvntfdGiMJC6msuQlo4zkRRtlznmer0XdFW XvMOKf1witIUYortBBDxbVxOYmjF/PJ8YShMDlkWkpyl5zXJuhtWAuCump7GDzBp R3dMFGfecwz5gLMni+EQDIEaudU/A/u/UMt8uF9Yr+l3eNor14V8K1z8Vpc+TR21 nDO4oG3A =2aVN -----END PGP SIGNATURE----- --/qlCiJrKe/c3lb0a--