commit | d6c907ea7abd42c4a2c7df87dbfe5fe9dca5a574 | [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 | 7221c6e697a91153784d5d772933111538a3d82e [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>