From: Tom Rini Date: Fri, 22 Jul 2016 20:12:25 -0400 Subject: [U-Boot] [U-Boot, 1/2] tools/env: complete environment device config early In-Reply-To: <20160714001439.9062-1-stefan@agner.ch> References: <20160714001439.9062-1-stefan@agner.ch> Message-ID: <20160723001225.GY14698@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 Wed, Jul 13, 2016 at 05:14:37PM -0700, Stefan Agner wrote: > From: Stefan Agner > > Currently flash_read completes a crucial part of the environment > device configuration, the device type (mtd_type). This is rather > confusing as flash_io calls flash_read conditionally, and one might > think flash_write, which also makes use of mtd_type, gets called > before flash_read. But since flash_io is always called with O_RDONLY > first, this is not actually the case in reality. > > However, it is much cleaner to complete and verify the config early > in parse_config. This also prepares the code for further extension. > > Signed-off-by: Stefan Agner > Reviewed-by: Andreas Fenkart 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: Digital signature URL: