Re: [PATCH v2] cmd: sf: Fix the flash_is_unlocked api size parameter

2023-09-21 Thread Michal Simek
On 9/20/23 04:54, Venkatesh Yadav Abbarapu wrote: When flash erase is called with size parameter, code is checking if sectors are locked or not. But for checking, the whole device length minus offset is used instead of actual size which should be erased. That's why when only some sectors are

Re: [PATCH v2] cmd: sf: Fix the flash_is_unlocked api size parameter

2023-09-20 Thread Simon Glass
On Tue, 19 Sept 2023 at 21:42, Venkatesh Yadav Abbarapu wrote: > > When flash erase is called with size parameter, code is checking > if sectors are locked or not. But for checking, the whole device > length minus offset is used instead of actual size which should > be erased. That's why when

[PATCH v2] cmd: sf: Fix the flash_is_unlocked api size parameter

2023-09-19 Thread Venkatesh Yadav Abbarapu
When flash erase is called with size parameter, code is checking if sectors are locked or not. But for checking, the whole device length minus offset is used instead of actual size which should be erased. That's why when only some sectors are locked it is not possible to erase unlocked sectors.