summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-3.3/478-mtd-partial_eraseblock_unlock.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 20:02:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 20:02:02 +0000
commit186db26d05034df31e0ced1b8b5d7d62ebe39b8f (patch)
tree824087a6066ce762568c070bfda62a2508960bf6 /target/linux/generic/patches-3.3/478-mtd-partial_eraseblock_unlock.patch
parented60bb8360a0b8dfaa774a4628a37152b9a462f5 (diff)
downloadmtk-20170518-186db26d05034df31e0ced1b8b5d7d62ebe39b8f.zip
mtk-20170518-186db26d05034df31e0ced1b8b5d7d62ebe39b8f.tar.gz
mtk-20170518-186db26d05034df31e0ced1b8b5d7d62ebe39b8f.tar.bz2
kernel: remove linux 3.3 patches and config
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44109
Diffstat (limited to 'target/linux/generic/patches-3.3/478-mtd-partial_eraseblock_unlock.patch')
-rw-r--r--target/linux/generic/patches-3.3/478-mtd-partial_eraseblock_unlock.patch18
1 files changed, 0 insertions, 18 deletions
diff --git a/target/linux/generic/patches-3.3/478-mtd-partial_eraseblock_unlock.patch b/target/linux/generic/patches-3.3/478-mtd-partial_eraseblock_unlock.patch
deleted file mode 100644
index d4d2940..0000000
--- a/target/linux/generic/patches-3.3/478-mtd-partial_eraseblock_unlock.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/drivers/mtd/mtdpart.c
-+++ b/drivers/mtd/mtdpart.c
-@@ -357,7 +357,14 @@ static int part_unlock(struct mtd_info *
- struct mtd_part *part = PART(mtd);
- if ((len + ofs) > mtd->size)
- return -EINVAL;
-- return mtd_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 mtd_unlock(part->master, ofs, len);
- }
-
- static int part_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)