aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/dts-5.10
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2021-10-31 01:32:31 +0200
committerChristian Lamparter <chunkeey@gmail.com>2021-12-27 13:51:41 +0100
commit5761aa4d9e077af5fbdf58ec4cbcb73a444e7ee2 (patch)
tree9588695976c270ee49620a71e1d6c92f8fa6ca30 /target/linux/realtek/dts-5.10
parent018ada5403f02921be22ee0cf49b88b2700ee105 (diff)
downloadupstream-5761aa4d9e077af5fbdf58ec4cbcb73a444e7ee2.tar.gz
upstream-5761aa4d9e077af5fbdf58ec4cbcb73a444e7ee2.tar.bz2
upstream-5761aa4d9e077af5fbdf58ec4cbcb73a444e7ee2.zip
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: abc17bf306ac ("ath79: convert mtd-mac-address to nvmem implementation") Tested-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/realtek/dts-5.10')
0 files changed, 0 insertions, 0 deletions