openwrt/target/linux/generic
Ansuel Smith 5761aa4d9e kernel: mtd: parsers: add nvmem support to cmdlinepart
Assuming cmdlinepart is only one level deep partition scheme and that
static partition are also defined in DTS, we can assign an of_node for
partition declared from bootargs.

The cmdlinepart parser is the first parser checked and if it does find
some partition declared in the bootargs, every other parser is ignored.
This means that the fixed-partition parser is ignored and an of_node for
the mtd is never assigned.
Fix this by searching a defined of_node using a similar fixed_partition
parsing logig, check if a partition is present with the same label, check
that it has the same offset and size and finally assign an of_node to the
mtd. The NVMEM can now find the of_node for the mtd and correctly works.

Fixes: abc17bf306 ("ath79: convert mtd-mac-address to nvmem implementation")
Tested-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-12-27 13:51:41 +01:00
..
backport-5.4 kernel: bump 5.4 to 5.4.166 2021-12-17 15:10:22 +01:00
backport-5.10 kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
files kernel: export switch_generic_set_link() symbol 2021-10-07 15:13:16 +02:00
hack-5.4 kernel: mtd: parsers: add nvmem support to cmdlinepart 2021-12-27 13:51:41 +01:00
hack-5.10 kernel: mtd: parsers: add nvmem support to cmdlinepart 2021-12-27 13:51:41 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.4 kernel: bump 5.4 to 5.4.166 2021-12-17 15:10:22 +01:00
pending-5.10 kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
config-5.4 kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
config-5.10 kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
config-filter kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00