All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V6 0/5] mtd: add support for subpartitions
@ 2017-05-26 13:14 ` Rafał Miłecki
  0 siblings, 0 replies; 40+ messages in thread
From: Rafał Miłecki @ 2017-05-26 13:14 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
	Richard Weinberger
  Cc: Cyrille Pitchen, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Rafał Miłecki

From: Rafał Miłecki <rafal-g1n6cQUeyibVItvQsEIGlw@public.gmane.org>

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
solution instead.

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

-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2017-06-23 17:58 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-26 13:14 [PATCH V6 0/5] mtd: add support for subpartitions Rafał Miłecki
2017-05-26 13:14 ` Rafał Miłecki
     [not found] ` <20170526131415.27186-1-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-26 13:14   ` [PATCH V6 1/5] mtd: partitions: add helper for deleting partition Rafał Miłecki
2017-05-26 13:14     ` Rafał Miłecki
     [not found]     ` <20170526131415.27186-2-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-20 22:50       ` Brian Norris
2017-06-20 22:50         ` Brian Norris
     [not found]         ` <20170620225007.GB14148-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2017-06-21  5:33           ` Rafał Miłecki
2017-06-21  5:33             ` Rafał Miłecki
2017-05-26 13:14   ` [PATCH V6 2/5] mtd: partitions: rename "master" to the "parent" where appropriate Rafał Miłecki
2017-05-26 13:14     ` Rafał Miłecki
     [not found]     ` <20170526131415.27186-3-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-21  1:22       ` Brian Norris
2017-06-21  1:22         ` Brian Norris
2017-05-26 13:14   ` [PATCH V6 3/5] mtd: partitions: add support for subpartitions Rafał Miłecki
2017-05-26 13:14     ` Rafał Miłecki
2017-05-26 13:14   ` [PATCH V6 4/5] mtd: partitions: add support for partition parsers Rafał Miłecki
2017-05-26 13:14     ` Rafał Miłecki
2017-05-26 13:14   ` [PATCH V6 5/5] mtd: extract TRX parser out of bcm47xxpart into a separated module Rafał Miłecki
2017-05-26 13:14     ` Rafał Miłecki
2017-06-21  6:26   ` [PATCH V7 0/6] mtd: add support for subpartitions Rafał Miłecki
2017-06-21  6:26     ` Rafał Miłecki
     [not found]     ` <20170621062647.6072-1-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-21  6:26       ` [PATCH V7 1/6] mtd: partitions: add helper for deleting partition Rafał Miłecki
2017-06-21  6:26         ` Rafał Miłecki
2017-06-21  6:26       ` [PATCH V7 2/6] mtd: partitions: remove sysfs files when deleting all master's partitions Rafał Miłecki
2017-06-21  6:26         ` Rafał Miłecki
     [not found]         ` <20170621062647.6072-3-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-22 21:05           ` Brian Norris
2017-06-22 21:05             ` Brian Norris
     [not found]             ` <20170622210533.GD14148-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2017-06-22 21:40               ` Rafał Miłecki
2017-06-22 21:40                 ` Rafał Miłecki
     [not found]                 ` <CACna6rw3B5=48qbRK+vQ1gsxsZtCtJfNa=kORZY6FrCko5PJFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-23 17:57                   ` Brian Norris
2017-06-23 17:57                     ` Brian Norris
2017-06-21  6:26       ` [PATCH V7 3/6] mtd: partitions: rename "master" to the "parent" where appropriate Rafał Miłecki
2017-06-21  6:26         ` Rafał Miłecki
2017-06-21  6:26       ` [PATCH V7 4/6] mtd: partitions: add support for subpartitions Rafał Miłecki
2017-06-21  6:26         ` Rafał Miłecki
2017-06-21  6:26       ` [PATCH V7 5/6] mtd: partitions: add support for partition parsers Rafał Miłecki
2017-06-21  6:26         ` Rafał Miłecki
2017-06-21  6:26       ` [PATCH V7 6/6] mtd: extract TRX parser out of bcm47xxpart into a separated module Rafał Miłecki
2017-06-21  6:26         ` Rafał Miłecki
2017-06-22 21:06       ` [PATCH V7 0/6] mtd: add support for subpartitions Brian Norris
2017-06-22 21:06         ` Brian Norris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.