openwrt-6.x/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
212-tools_portability.patch
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
249-udp-tunnel-selection.patch
250-netfilter_depends.patch
251-sound_kconfig.patch
259-regmap_dynamic.patch
260-crypto_test_dependencies.patch
260-lib-arc4-unhide.patch
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
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
550-loop-Report-EOPNOTSUPP-properly.patch
640-bridge-only-accept-EAP-locally.patch
645-netfilter-connmark-introduce-set-dscpmark.patch
647-netfilter-flow-acct.patch
650-netfilter-add-xt_OFFLOAD-target.patch
651-wireless_mesh_header.patch
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
700-swconfig_switch_drivers.patch
703-add_vsc8504_support.patch
710-net-dsa-mv88e6xxx-default-VID-1.patch
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch
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
921-always-create-console-node-in-initramfs.patch