From patchwork Fri Jul 10 16:54:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Mikhaylov X-Patchwork-Id: 241353 List-Id: U-Boot discussion From: fr0st61te at gmail.com (Ivan Mikhaylov) Date: Fri, 10 Jul 2020 19:54:17 +0300 Subject: [PATCH 0/1] fw_setenv always locks flash whenever it tries to write Message-ID: <20200710165418.15071-1-fr0st61te@gmail.com> fw_setenv usage always locks u-boot-env mtd device without questions. Locking of flash can be disruptive and may affect not only u-boot-env region due to different problems with chips and lock callbacks on kernel side. I'm not sure if my fix is right, but also I thought about possible option in fw_env config about locking/unlocking or even option into fw_setenv/printenv. Any ideas? Ivan Mikhaylov (1): fw_setenv: lock the flash only if it was locked before tools/env/fw_env.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-)