Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-07 Thread Michael Walle
Am 2022-02-04 13:55, schrieb Jan Kiszka: On 02.02.22 10:57, Jan Kiszka wrote: .. What about also exposing a "is_unlocked" service? Seems that would have the semantic we need, and there is at least already stm_is_unlocked_sr. But no sst26_is_unlocked. From my reading of sst26_is_locked, it

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-04 Thread Jan Kiszka
On 02.02.22 10:57, Jan Kiszka wrote: > On 02.02.22 10:38, Jan Kiszka wrote: >> On 02.02.22 09:21, Michael Walle wrote: >>> Am 2022-02-02 07:35, schrieb Jan Kiszka: From: Jan Kiszka Do not suggest successful operation if a flash area to be changed is actually locked, thus will n

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Jan Kiszka
On 02.02.22 10:38, Jan Kiszka wrote: > On 02.02.22 09:21, Michael Walle wrote: >> Am 2022-02-02 07:35, schrieb Jan Kiszka: >>> From: Jan Kiszka >>> >>> Do not suggest successful operation if a flash area to be changed is >>> actually locked, thus will not execute the request. Rather report an >>>

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Michael Walle
Am 2022-02-02 10:38, schrieb Jan Kiszka: On 02.02.22 09:21, Michael Walle wrote: Am 2022-02-02 07:35, schrieb Jan Kiszka: From: Jan Kiszka 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 o

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Jan Kiszka
On 02.02.22 09:21, Michael Walle wrote: > Am 2022-02-02 07:35, schrieb Jan Kiszka: >> From: Jan Kiszka >> >> 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-frie

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Michael Walle
Am 2022-02-02 07:35, schrieb Jan Kiszka: From: Jan Kiszka 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.