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

Albert ARIBAUD albert.u.boot at aribaud.net
Thu Oct 22 08:13:28 CEST 2015


Hello Vadzim,

On Tue, 20 Oct 2015 02:41:44 +0300, Vadzim Dambrouski
<pftbest at 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 at gmail.com>

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list