[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191113171505.26128-1-miquel.raynal@bootlin.com>
Date: Wed, 13 Nov 2019 18:15:01 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Tudor Ambarus <Tudor.Ambarus@...rochip.com>
Cc: <linux-mtd@...ts.infradead.org>, Mark Brown <broonie@...nel.org>,
Paul Kocialkowski <paul.kocialkowski@...tlin.com>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Boris Brezillon <boris.brezillon@...labora.com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Miquel Raynal <miquel.raynal@...tlin.com>
Subject: [PATCH v4 0/4] MTD concat
Hello,
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
patchset.
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.
Thanks,
Miquèl
[1] https://lwn.net/ml/linux-kernel/20180907173515.19990-1-kernel@nospam.obeliks.de/
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
--
2.20.1
Powered by blists - more mailing lists