aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2020-12-30 19:27:06 +0530
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-12-31 14:41:31 +0100
commit65f3fc18fc1e5e79a7991fa0e9e2dc3667af770a (patch)
tree3be5b31b24cff0c5075ef85ee2f027091cbf423d /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
parent675b62e12f9db639bd5ebcfd6c68b46d66a46a3c (diff)
dfu_mtd: Add provision to unlock mtd device
Prior to writing to an mtd device, mtd_erase is called. This call fails in case the sector being erased is locked. Call mtd_unlock to unlock the region which is to be erased and later written to. Lock the region once the write to the region has completed. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c')
0 files changed, 0 insertions, 0 deletions