Searched hist:"14 fb5b252ac21c81e24fa734c3f66e9d6c3a0932" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/tools/env/ |
| H A D | fw_env.c | 14fb5b252ac21c81e24fa734c3f66e9d6c3a0932 Thu Jul 14 00:14:37 UTC 2016 Stefan Agner <stefan.agner@toradex.com> tools/env: complete environment device config early
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
|