]> git.sur5r.net Git - u-boot/commit
arm: stm32f4: fix a bug when only first sector gets erased
authorVadzim Dambrouski <pftbest@gmail.com>
Fri, 23 Oct 2015 18:14:06 +0000 (21:14 +0300)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 10 Nov 2015 15:48:47 +0000 (16:48 +0100)
commit4cd3246f2a3a3a5032edcaed3cf807dd916f0aea
tree2ef1b86868e2ceb729f80ba5f866da8dc540209a
parent35629363733a8e68c61f6698eaaeffdf66d3ec65
arm: stm32f4: fix a bug when only first sector gets erased

flash_lock call is inside a for loop, 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>
arch/arm/cpu/armv7m/stm32f4/flash.c