[OpenWrt-Devel] [Info] Fwd: [PATCH v4 0/4] MTD concat

Jeff Kletsky lede at allycomm.com
Wed Nov 13 12:28:16 EST 2019

If I understand this properly, the ability to logically concatenate
MTD partitions may have benefits to the project in the future.





A year ago Bernhard Frauendienst started an effort to bring MTD
devices concatenation generic [1]. Today I also need this
concatenation to be possible in order to support configurations where
two MTD devices are treated like one bigger in order to be able to
define partitions across chip boundaries, hence reviving this

After having talked with Mark Brown and Boris Brezillon this approach
seems to be the cleanest and easiest one. If discussions need to
happen, it is probably on the dt-bindings file where I tried to
summarize the issue and the possible solutions in the commit log.

I changed a bit the code logic and style but not so much, all the
changes with the 2018 version are in [ ] in the commit logs.

I would like to add another way to concatenate devices: with module
parameters/arguments on the cmdline. I will extend this work once the
bindings will have been discussed and accepted.



Bernhard Frauendienst (3):
mtd: Add get_mtd_device_by_node() helper
dt-bindings: mtd: Describe mtd-concat devices
mtd: Add driver for concatenating devices

Miquel Raynal (1):
mtd: concat: Fix a comment referring to an unknown symbol

.../devicetree/bindings/mtd/mtd-concat.yaml | 56 ++++++++
drivers/mtd/Kconfig | 8 ++
drivers/mtd/Makefile | 1 +
drivers/mtd/mtd_virt_concat.c | 132 ++++++++++++++++++
drivers/mtd/mtdconcat.c | 5 +-
drivers/mtd/mtdcore.c | 38 +++++
include/linux/mtd/mtd.h | 2 +
7 files changed, 238 insertions(+), 4 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mtd/mtd-concat.yaml
create mode 100644 drivers/mtd/mtd_virt_concat.c


Linux MTD discussion mailing list

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list