[U-Boot] [PATCH 1/2] arm: stm32f4: fix a bug when only first sector gets erased

Albert ARIBAUD
2015-10-22T06:13:28Z

Hello Vadzim,

On Tue, 20 Oct 2015 02:41:44 +0300, Vadzim Dambrouski
<pftbest@gmail.com> wrote:
> flash_lock call is inside a for cycle, so after the first iteration flash
> is locked and no more sectors can be erased.

Nitpick: the commit summary explains the problem well, but not the
(admittedly) trivial solution; just add it:

flash_lock call is inside a for cycle, so after the first
iteration flash is locked and no more sectors can be erased.
Move flash_lock out of the loop.

> Signed-off-by: Vadzim Dambrouski <pftbest@gmail.com>

Amicalement,
--
Albert.