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 C7E1FC433F5 for ; Fri, 11 Feb 2022 17:06:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C256A83B5D; Fri, 11 Feb 2022 18:06:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="ZWwJFrFQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 57AD783B5F; Fri, 11 Feb 2022 18:06:03 +0100 (CET) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (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 25BB483B51 for ; Fri, 11 Feb 2022 18:05:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2d.google.com with SMTP id o5so9053247qvm.3 for ; Fri, 11 Feb 2022 09:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rYwZwcS9uef2EMAo44eoDw2lzYz1Ie7BqGUGgulntT0=; b=ZWwJFrFQm1g1OJE+4dmFUmuoslX0tJ59V0fq+SuZ5T5WM7L+i5yzqJ9oTr6ybD7Unn pJt2d3oIHg9jvu5mRwv1h++E6397i5X1+LSlXO3vjoi8k88PPQnlP8csUxn5yUsCRg/Q iDiyFSeQPbffyB58OItTGqVFbZVEU29XRtmaE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rYwZwcS9uef2EMAo44eoDw2lzYz1Ie7BqGUGgulntT0=; b=xkOy/UNjYZYZpEcWTaA1XmXxlhmRRhXD1cOVi0pIPX2ChU8IP7BgEKGbi48t9Y4dlY 889dXS2BamjE8PPT4tayIE5cBz5dzFuR+xhaS2Mw8N95J9G2FZXtHC3GSXP+Qut1EIHm PEi17/fmAo5NV5tM6aaWFKYwfYQpeJLaXzt4Oh9BpWuCq4bjeQJPvC4w9GQn6B6YW100 PKp7jadir40RDkhnbMkg8ZYD586BKuGr9rczrvSTgcOwUwH4zBms9x1AIPTw8YLiwDBW 9q01IPlLgjRJLyKnCasoqk6i6/MDdXIl8S000zWpQUOe3ecSDE5fYwXhlwmUY8O24uWT E96g== X-Gm-Message-State: AOAM530jDDSD+e08jz88yJbLboUVooCulMJ2hCJZt7FsvjcfCPbLXR+p l1GnZXZfNQ23gQwVwYsJHG9S2GpNnxI0ok26 X-Google-Smtp-Source: ABdhPJyEAsIrkjo9kTzDiggxIgU9FpQ7BRHQkz79Qy6P7NT9DpOnMBCW6es/jDaNFwuGx8DJf0tPxg== X-Received: by 2002:ad4:4ea6:: with SMTP id ed6mr1715272qvb.113.1644599157802; Fri, 11 Feb 2022 09:05:57 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id k9sm11540866qkj.31.2022.02.11.09.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 09:05:32 -0800 (PST) Date: Fri, 11 Feb 2022 12:05:30 -0500 From: Tom Rini To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: u-boot@lists.denx.de, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH V3 1/2] fw_env: make flash_io() take buffer as an argument Message-ID: <20220211170530.GJ2697206@bill-the-cat> References: <20220112114706.12269-1-zajec5@gmail.com> <20220112114706.12269-2-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="a58rN+WbXIGauCK9" Content-Disposition: inline In-Reply-To: <20220112114706.12269-2-zajec5@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.5 at phobos.denx.de X-Virus-Status: Clean --a58rN+WbXIGauCK9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 12, 2022 at 12:47:05PM +0100, Rafa=C5=82 Mi=C5=82ecki wrote: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > It's usually easier to understand code & follow it if all arguments are > passed explicitly. Many coding styles also discourage using global > variables. >=20 > Behaviour of flash_io() was a bit unintuitive as it was writing to a > buffer referenced in a global struct. That required developers to > remember how it works and sometimes required hacking "environment" > global struct variable to read data into a proper buffer. >=20 > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki Applied to u-boot/master, thanks! --=20 Tom --a58rN+WbXIGauCK9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmIGl1oACgkQFHw5/5Y0 tyxA5Qv/RMICfg720qoBu/DKVCzhYbcMYVATBSLZBjjG1Xhh0Z7eeZL8gTOexpJ8 rjjFADRG5Dif1D5WeGE9M1TjRlhJovMyOK3+rMy4vKc3kJBAauQZbDCy5Ss3f71j WWzt77ibKEmQAujMQyIrU61GJqr/OATlFpaT8pqxMdN/53cnwOieWQdFTMCaSGG5 jakIRo/RI8AWc7HuRBmFBb2VN/IT2shh5YBUErrmOFKjyas3z7ZyJ/lCvMr5Muzz y1mRGpu3nYKQ+D5ZqE7bTC7jWQMaaWrP7KHHL/9O3i9GiJ5fBw9gAz/KxuE0gIdC NM5uv1qrvlRdi6DwPmoR50FeYgJIMjpKQ8uEtPmpJBO1seFWNXD+kTCvTTl2X+XQ XV4l62rXrXhA/UVVVVJmm0WFCvYsTN4J/7NZ7JkrbulyCbhGOPIEAZ+nuyGMtl2b zWYJ0/Dz7euMuHSf9SKgf7ASMJZg0DIRhMu7471iP1emUXW0pYnkw1QmSKbBTUL7 Inm/KNhb =ml/k -----END PGP SIGNATURE----- --a58rN+WbXIGauCK9--