openwrt/target/linux
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
..
apm821xx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
arc770 kernel: move two symbols to the generic kconfigs 2021-08-29 17:07:19 +02:00
archs38 kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
armvirt kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
at91 kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
ath25 kernel: bump 5.4 to 5.4.154 2021-10-21 00:17:36 +02:00
ath79 ath79: remove kernel 5.4 2021-12-27 03:13:36 +01:00
bcm27xx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
bcm47xx bcm47xx: switch to kernel 5.10 2021-11-08 15:56:39 +01:00
bcm53xx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
bcm63xx kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
bcm4908 bcm4908: include ATF in bootfs images 2021-12-24 23:07:39 +01:00
bmips kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
gemini kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
generic kernel: mtd: parsers: add nvmem support to cmdlinepart 2021-12-27 13:51:41 +01:00
imx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
ipq40xx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
ipq806x kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
ipq807x kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-09 20:24:12 +02:00
kirkwood kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
lantiq kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
layerscape kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
malta kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
mediatek mediatek: mt7622: unifi6lr: properly register Ethernet PHY 2021-12-26 19:11:54 +00:00
mpc85xx mpc85xx: remove kernel 5.4 2021-12-27 03:13:36 +01:00
mvebu mvebu: puzzle: wan LED and fix default network 2021-12-23 20:17:47 +00:00
mxs kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
octeon kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
octeontx kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
omap kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
oxnas kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
pistachio kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
qoriq qoriq: add support for WatchGuard Firebox M300 2021-12-21 21:37:46 +02:00
ramips ramips: work around duplicate MAC address on U6 Lite 2021-12-20 00:12:12 +01:00
realtek kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
rockchip rockchip: remove Kernel 5.4 2021-12-27 03:13:36 +01:00
sunxi sunxi: Use rtl8723bu-firmware instead of rtl8723bs-firmware 2021-12-27 00:58:29 +01:00
tegra kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
uml kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
x86 kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
zynq kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00