commit | 65f3fc18fc1e5e79a7991fa0e9e2dc3667af770a | [log] [tgz] |
---|---|---|
author | Sughosh Ganu <sughosh.ganu@linaro.org> | Wed Dec 30 19:27:06 2020 +0530 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Thu Dec 31 14:41:31 2020 +0100 |
tree | 3be5b31b24cff0c5075ef85ee2f027091cbf423d | |
parent | 675b62e12f9db639bd5ebcfd6c68b46d66a46a3c [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>