commit | 2bba3f52377a165664b1e1570ae3d19e087954ce | [log] [tgz] |
---|---|---|
author | Jan Kiszka <jan.kiszka@siemens.com> | Wed Mar 02 15:01:56 2022 +0100 |
committer | Jagan Teki <jagan@edgeble.ai> | Mon Jul 18 19:15:19 2022 +0530 |
tree | cdca10d76dd60120660d89410aeafa7efda139f0 | |
parent | 4ecf919ac6a8eee93e24058237600ee447f07906 [diff] |
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>