diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-03-07 17:56:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-03-07 17:56:58 +0000 |
commit | 46c7d0d1ab610701b91ac9ba465e63f51e80ee06 (patch) | |
tree | ac61f4ccb56d99a7cf65fc19840cc4c906ce65f3 /target/linux/generic/patches-4.3/412-mtd-partial_eraseblock_unlock.patch | |
parent | 3abf5ce6564e24a388b86caf1a00f91f4262b312 (diff) | |
download | upstream-46c7d0d1ab610701b91ac9ba465e63f51e80ee06.tar.gz upstream-46c7d0d1ab610701b91ac9ba465e63f51e80ee06.tar.bz2 upstream-46c7d0d1ab610701b91ac9ba465e63f51e80ee06.zip |
kernel: remove linux 4.3 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48955
Diffstat (limited to 'target/linux/generic/patches-4.3/412-mtd-partial_eraseblock_unlock.patch')
-rw-r--r-- | target/linux/generic/patches-4.3/412-mtd-partial_eraseblock_unlock.patch | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/target/linux/generic/patches-4.3/412-mtd-partial_eraseblock_unlock.patch b/target/linux/generic/patches-4.3/412-mtd-partial_eraseblock_unlock.patch deleted file mode 100644 index b7964e25b8..0000000000 --- a/target/linux/generic/patches-4.3/412-mtd-partial_eraseblock_unlock.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/drivers/mtd/mtdpart.c -+++ b/drivers/mtd/mtdpart.c -@@ -336,7 +336,14 @@ static int part_lock(struct mtd_info *mt - static int part_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) - { - struct mtd_part *part = PART(mtd); -- return part->master->_unlock(part->master, ofs + part->offset, len); -+ -+ ofs += part->offset; -+ if (mtd->flags & MTD_ERASE_PARTIAL) { -+ /* round up len to next erasesize and round down offset to prev block */ -+ len = (mtd_div_by_eb(len, part->master) + 1) * part->master->erasesize; -+ ofs &= ~(part->master->erasesize - 1); -+ } -+ return part->master->_unlock(part->master, ofs, len); - } - - static int part_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) |