From: Tom Rini Date: Thu, 17 Jan 2019 17:44:05 -0500 Subject: [U-Boot] [U-Boot,v2] env: add spi_flash_read_env function In-Reply-To: <1544519636-29902-1-git-send-email-horatiu.vultur@microchip.com> References: <1544519636-29902-1-git-send-email-horatiu.vultur@microchip.com> Message-ID: <20190117224405.GX27429@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Dec 11, 2018 at 10:13:56AM +0100, Horatiu Vultur wrote: > The spi_flash_read_env function is a wrapper over spi_flash_read, which > enables the env to read multiple flash page size from flash until '\0\0' > is read or the end of env partition is reached. Instead of reading the > entire env size. When it reads '\0\0', it stops reading further the env > and assumes that the rest of env is '\0'. > > This is an optimization for large environments that contain few bytes > environment variables. In this case it doesn't need to read the entire > environment and only few pages. > > Signed-off-by: Horatiu Vultur Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: