
23 Jul
2016
23 Jul
'16
2:12 a.m.
On Wed, Jul 13, 2016 at 05:14:37PM -0700, Stefan Agner wrote:
From: Stefan Agner stefan.agner@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@toradex.com Reviewed-by: Andreas Fenkart
Applied to u-boot/master, thanks!
--
Tom