openwrt/target/linux/generic/hack-5.4
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
..
204-module_strip.patch kernel: bump 5.4 to 5.4.144 2021-09-13 17:08:17 +02:00
205-kconfig-exit.patch generic: Kconfig: exit on unset symbol 2021-08-10 13:14:52 +02:00
210-darwin_scripts_include.patch
211-darwin-uuid-typedef-clash.patch linux-5.4: backport modpost upstream patches 2020-03-01 15:52:36 +01:00
212-tools_portability.patch kernel: fix portability issue with perf on linux 5.4 2020-06-04 21:52:57 +02:00
214-spidev_h_portability.patch
220-arm-gc_sections.patch kernel: bump 5.4 to 5.4.156 2021-11-06 14:48:20 +01:00
221-module_exports.patch kernel: bump 5.4 to 5.4.142 2021-08-21 15:59:39 +02:00
230-openwrt_lzma_options.patch kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
249-udp-tunnel-selection.patch kernel/hack-5.4: make UDP tunneling user-selectable 2021-01-01 19:55:59 +01:00
250-netfilter_depends.patch kernel: drop the conntrack rtcache patch 2021-04-22 09:08:56 +01:00
251-sound_kconfig.patch kernel: bump 5.4 to 5.4.69 2020-10-02 22:02:26 +02:00
259-regmap_dynamic.patch kernel: bump 5.4 to 5.4.69 2020-10-02 22:02:26 +02:00
260-crypto_test_dependencies.patch kernel: 5.4: fix patches after wireguard backport 2021-02-26 20:41:01 +01:00
260-lib-arc4-unhide.patch kernel: 5.4: fix patches after wireguard backport 2021-02-26 20:41:01 +01:00
280-rfkill-stubs.patch
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch
301-mips_image_cmdline_hack.patch kernel: bump 5.4 to 5.4.162 2021-11-28 16:32:45 +01:00
321-powerpc_crtsavres_prereq.patch
400-block-fit-partition-parser.patch kernel: fix FIT partition parser compatibility issues 2021-03-31 22:54:12 +01:00
400-unlock_mx25l6406e_with_4bit_block_protect.patch kernel: add support for ESMT F25L16PA(2S) SPI-NOR 2021-10-31 21:56:56 +01:00
421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch kernel: mtd: parsers: add nvmem support to cmdlinepart 2021-12-27 13:51:41 +01:00
531-debloat_lzma.patch kernel: remove a bunch of trailing whitespaces 2020-05-25 21:11:47 +02:00
550-loop-Report-EOPNOTSUPP-properly.patch kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
640-bridge-only-accept-EAP-locally.patch
645-netfilter-connmark-introduce-set-dscpmark.patch kernel: connmark set-dscpmark fix build on 5.4 2020-03-21 09:51:40 +00:00
647-netfilter-flow-acct.patch kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
650-netfilter-add-xt_OFFLOAD-target.patch kernel: drop the conntrack rtcache patch 2021-04-22 09:08:56 +01:00
651-wireless_mesh_header.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
660-fq_codel_defaults.patch kernel: bump 5.4 to 5.4.150 2021-10-02 16:45:56 +02:00
661-use_fq_codel_by_default.patch kernel: bump 5.4 to 5.4.161 2021-11-28 16:32:45 +01:00
662-remove_pfifo_fast.patch kernel: bump 5.4 to 5.4.124 2021-06-06 00:25:25 +02:00
700-swconfig_switch_drivers.patch kernel: remove mvsw61xx swconfig driver 2020-11-16 13:55:05 +01:00
703-add_vsc8504_support.patch kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
710-net-dsa-mv88e6xxx-default-VID-1.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
721-phy_packets.patch kernel: backport the upstream implementation of threaded NAPI to 5.4 2021-12-15 20:36:22 +01:00
760-net-usb-r8152-add-LED-configuration-from-OF.patch rockchip: move r8152 related patches to generic 2021-10-30 21:17:20 +02:00
761-dt-bindings-net-add-RTL8152-binding-documentation.patch rockchip: move r8152 related patches to generic 2021-10-30 21:17:20 +02:00
773-bgmac-add-srab-switch.patch kirkwood: import patch to fix build and refresh patches 2021-08-05 23:53:07 +01:00
901-debloat_sock_diag.patch kernel: bump 5.4 to 5.4.151 2021-10-10 00:12:10 +01:00
902-debloat_proc.patch kernel: bump 5.4 to 5.4.165 2021-12-17 15:10:22 +01:00
904-debloat_dma_buf.patch kernel: bump 5.4 to 5.4.162 2021-11-28 16:32:45 +01:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch kernel: bump 5.4 to 5.4.120 2021-05-23 15:09:06 +02:00
921-always-create-console-node-in-initramfs.patch