Re: [PATCH 1/1] fw_setenv: lock the flash only if it was locked before

2020-07-31 Thread Tom Rini
On Fri, Jul 10, 2020 at 07:54:18PM +0300, Ivan Mikhaylov wrote: > u-boot-env flash region lock/unlock may affect other regions than > u-boot-env, fw_setenv does this in a way 'Lock it in any cases'. > Change this to 'lock it if it was locked before'. > > Signed-off-by: Ivan Mikhaylov With a muc

[PATCH 1/1] fw_setenv: lock the flash only if it was locked before

2020-07-11 Thread Ivan Mikhaylov
u-boot-env flash region lock/unlock may affect other regions than u-boot-env, fw_setenv does this in a way 'Lock it in any cases'. Change this to 'lock it if it was locked before'. Signed-off-by: Ivan Mikhaylov --- tools/env/fw_env.c | 24 +++- 1 file changed, 19 insertions(+