[U-Boot] [U-Boot, 1/2] tools/env: complete environment device config early

Tom Rini trini at konsulko.com
Sat Jul 23 02:12:25 CEST 2016


On Wed, Jul 13, 2016 at 05:14:37PM -0700, Stefan Agner wrote:

> From: Stefan Agner <stefan.agner at toradex.com>
> 
> 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 <stefan.agner at toradex.com>
> 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: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/8f0abc0b/attachment.sig>


More information about the U-Boot mailing list