diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-06-23 08:59:46 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2017-06-23 10:09:57 +0200 |
commit | 4052443a235433fb97af9711bf6429cd05820ba9 (patch) | |
tree | 64644f1ea40fc2b97631abbba55c0bcd6f9f35bc /target/linux/generic/patches-4.9/411-mtd-partial_eraseblock_write.patch | |
parent | b91a38d6479ec7ca028352013e3f27e05491cc95 (diff) | |
download | mtk-20170518-4052443a235433fb97af9711bf6429cd05820ba9.zip mtk-20170518-4052443a235433fb97af9711bf6429cd05820ba9.tar.gz mtk-20170518-4052443a235433fb97af9711bf6429cd05820ba9.tar.bz2 |
kernel: don't switch allocate_partition to use mtd_roundup_to_eb
This mtd_roundup_to_eb helper was introduced years ago in the commit
daec7ad768841 ("kernel/3.10: add separate rootfs partition parser") and
it was probably supposed to simplify code a bit.
With the recent upstream commit 1eeef2d7483a7 ("mtd: handle partitioning
on devices with 0 erasesize") the logic in allocate_partition got
slightly more complex and we can't use this simple helper anymore as it
doesn't support MTD_NO_ERASE properly.
There also isn't any real gain from this helper, so it's probably easier
to just don't use it *or* work on upstreaming it to avoid maintenance
cost.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic/patches-4.9/411-mtd-partial_eraseblock_write.patch')
-rw-r--r-- | target/linux/generic/patches-4.9/411-mtd-partial_eraseblock_write.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-4.9/411-mtd-partial_eraseblock_write.patch b/target/linux/generic/patches-4.9/411-mtd-partial_eraseblock_write.patch index 6951973..ced1f61 100644 --- a/target/linux/generic/patches-4.9/411-mtd-partial_eraseblock_write.patch +++ b/target/linux/generic/patches-4.9/411-mtd-partial_eraseblock_write.patch @@ -97,7 +97,7 @@ if (instr->fail_addr != MTD_FAIL_ADDR_UNKNOWN) instr->fail_addr -= part->offset; -@@ -562,17 +631,20 @@ static struct mtd_part *allocate_partiti +@@ -564,17 +633,20 @@ static struct mtd_part *allocate_partiti if ((slave->mtd.flags & MTD_WRITEABLE) && mtd_mod_by_eb(slave->offset, &slave->mtd)) { /* Doesn't start on a boundary of major erase size */ |