openwrtv4/target/linux/generic
Bernhard Frauendienst 3370e10495 kernel: add driver for virtual mtd_concat devices
Some systems require multiple flash chips to be concatenated and read as
a single mtd device. The ar71xx target provides custom code to create
such mtdconcat devices. When porting devices to ath79, however, there is
no way to create such devices from within the device tree.

This commit adds a driver for creating virtual mtd-concat devices to the
ath79 target. Nodes must have a compatible = "virtual,mtd-concat" line,
and define a list of devices to concat in the 'devices' property,
for example:

flash {
	compatible = "virtual,mtd-concat";

	devices = <&flash0 &flash1>;
};

The driver is added to the very end of the mtd Makefile to increase the
likelyhood of all child devices already being loaded at the time of
probing, preventing unnecessary deferred probes which might in turn
cause other problems (like failure to load MAC addresses from art because
the partitions are not loaded yet).

Signed-off-by: Bernhard Frauendienst <openwrt@nospam.obeliks.de>
2018-09-10 09:35:07 +02:00
..
backport-4.9 kernel: backport i2c-gpio working over slow can_sleep GPIOs 2018-09-10 09:28:55 +02:00
backport-4.14 kernel: backport i2c-gpio working over slow can_sleep GPIOs 2018-09-10 09:28:55 +02:00
files generic: revert workarounds for AR8337 switch 2018-08-23 22:40:59 +02:00
hack-4.9 kernel: bump 4.9 to 4.9.122 2018-08-20 13:03:22 +02:00
hack-4.14 kernel: bump 4.14 to 4.14.68 2018-09-07 17:21:24 +02:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-3.18 kernel: bump 3.18 to 3.18.121 2018-09-07 17:21:24 +02:00
pending-4.9 kernel: bump 4.9 to 4.9.124 2018-08-28 23:05:39 +02:00
pending-4.14 kernel: add driver for virtual mtd_concat devices 2018-09-10 09:35:07 +02:00
config-3.18 config: extend small_flash feature 2018-07-12 18:15:33 +02:00
config-4.9 config: extend small_flash feature 2018-07-12 18:15:33 +02:00
config-4.14 config: extend small_flash feature 2018-07-12 18:15:33 +02:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00