]> git.baikalelectronics.ru Git - uboot.git/commit
sf: Query write-protection status before operating the flash
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 2 Mar 2022 14:01:56 +0000 (15:01 +0100)
committerJagan Teki <jagan@edgeble.ai>
Mon, 18 Jul 2022 13:45:19 +0000 (19:15 +0530)
commit6d4bd9aa77cec0beb41beb1aded5ba32a4cf3071
treecdca10d76dd60120660d89410aeafa7efda139f0
parent313341296e433d0da455d4771554c203a59c56bd
sf: Query write-protection status before operating the flash

Do not suggest successful operation if a flash area to be changed is
actually locked, thus will not execute the request. Rather report an
error and bail out. That's way more user-friendly than asking them to
manually check for this case.

Derived from original patch by Chao Zeng.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
cmd/sf.c