[PATCH V6 0/5] mtd: add support for subpartitions
zajec5 at gmail.com
Fri May 26 06:14:10 PDT 2017
From: Rafał Miłecki <rafal at milecki.pl>
This patchset adds support for subpartitions. This feature means support
for partitions that are containers with extra subpartitions / volumes.
Initially I wanted to keep my changes minimalistic but Brian pointed
that casting const to non-const is hacky and I should work on cleaner
Apart from trivial renames I needed to
1) Modify 1 line in allocate_partition
2) Add recursion to the deletion function & mtd_get_device_size
V6 mostly reworks flat structure of partitions into a tree one.
I hope this is acceptable & clean & clear enough.
Please let me know if you think further improvements should be added.
Rafał Miłecki (5):
mtd: partitions: add helper for deleting partition
mtd: partitions: rename "master" to the "parent" where appropriate
mtd: partitions: add support for subpartitions
mtd: partitions: add support for partition parsers
mtd: extract TRX parser out of bcm47xxpart into a separated module
drivers/mtd/Kconfig | 4 +
drivers/mtd/Makefile | 1 +
drivers/mtd/bcm47xxpart.c | 99 +------------
drivers/mtd/mtdpart.c | 311 +++++++++++++++++++++++----------------
drivers/mtd/parsers/Kconfig | 8 +
drivers/mtd/parsers/Makefile | 1 +
drivers/mtd/parsers/parser_trx.c | 126 ++++++++++++++++
include/linux/mtd/partitions.h | 7 +
8 files changed, 336 insertions(+), 221 deletions(-)
create mode 100644 drivers/mtd/parsers/Kconfig
create mode 100644 drivers/mtd/parsers/Makefile
create mode 100644 drivers/mtd/parsers/parser_trx.c
More information about the linux-mtd