openwrt/target/linux/generic/hack-5.10
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: fix warning about unused try_to_force_load 2021-08-29 16:31:24 +02:00
205-kconfig-exit.patch kernel: bump 5.10 to 5.10.58 2021-08-14 16:32:34 +01: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.10 to 5.10.76 2021-10-30 21:17:20 +02:00
221-module_exports.patch kernel: bump 5.10 to 5.10.60 2021-08-21 15:59:39 +02:00
230-openwrt_lzma_options.patch
249-udp-tunnel-selection.patch
250-netfilter_depends.patch
251-kconfig.patch
252-SATA_PMP.patch kirkwood: solidify SATA_PMP config 2021-10-03 01:13:12 +02:00
259-regmap_dynamic.patch
260-crypto_test_dependencies.patch
261-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.10 to 5.10.82 2021-11-27 19:19:30 +01:00
321-powerpc_crtsavres_prereq.patch
401-mtd-super-don-t-reply-on-mtdblock-device-minor.patch kernel: support FIT partition parser on mtdblock devices 2021-04-09 16:04:35 +01:00
402-mtd-blktrans-call-add-disks-after-mtd-device.patch kernel: bump 5.10 to 5.10.37 2021-05-14 14:50:03 +01:00
410-block-fit-partition-parser.patch kernel: bump 5.10 to 5.10.80 2021-11-19 09:40:29 +00:00
420-mtd-set-rootfs-to-be-root-dev.patch kernel: fix mtd squashfs root regression on targets with CONFIG_FIT_PARTITION 2021-04-10 17:02:05 +02: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: 5.10: refresh patches 2021-02-16 23:48:23 +01:00
640-bridge-only-accept-EAP-locally.patch
645-netfilter-connmark-introduce-set-dscpmark.patch
650-netfilter-add-xt_FLOWOFFLOAD-target.patch kernel: fix RCU issue in xt_FLOWOFFLOAD patch 2021-12-11 13:52:39 +01:00
651-wireless_mesh_header.patch
660-fq_codel_defaults.patch kernel: bump 5.10 to 5.10.68 2021-09-30 22:29:33 +01:00
661-use_fq_codel_by_default.patch kernel: bump 5.10 to 5.10.80 2021-11-19 09:40:29 +00:00
700-swconfig_switch_drivers.patch kernel: 5.10: packet mangling code only for ar8216 driver 2021-11-02 22:36:41 +01:00
710-net-dsa-mv88e6xxx-default-VID-1.patch kernel: bump 5.10 to 5.10.75 2021-10-21 00:17:36 +02:00
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch kernel: bump 5.10 to 5.10.75 2021-10-21 00:17:36 +02:00
720-net-phy-add-aqr-phys.patch kernel: bump 5.10 to 5.10.72 2021-10-10 00:09:22 +01:00
721-net-add-packet-mangeling.patch kernel: bump 5.10 to 5.10.80 2021-11-19 09:40:29 +00:00
721-net-phy-aquantia-enable-AQR112-and-AQR412.patch kernel: import patch enabling AQR112 and AQR412 PHY 2021-12-23 20:17:28 +00:00
722-net-phy-aquantia-Add-AQR113-driver-support.patch kernel: generic: refresh patch 2021-12-26 19:11:36 +00:00
723-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch kernel: add id for AQR112 Ethernet phy variants 2021-12-23 20:17:37 +00: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 kernel: backport bgmac upstream commits from 5.15 / for 5.16 2021-10-07 11:30:18 +02:00
800-GPIO-add-named-gpio-exports.patch treewide: consolidate named GPIO patch into hack-5.10 2021-05-09 09:15:44 +02:00
901-debloat_sock_diag.patch kernel: 5.10: fix ar8216 vlans 2021-11-02 22:36:41 +01:00
902-debloat_proc.patch kernel: bump 5.10 to 5.10.83 2021-12-12 21:11:30 +01:00
904-debloat_dma_buf.patch kernel: bump 5.10 to 5.10.82 2021-11-27 19:19:30 +01:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch kernel: bump 5.10 to 5.10.38 2021-05-22 21:54:17 +01:00