mpc85xx: Fix HiveAP-330 nvmem mac loader
authorMartin Kennedy <hurricos@gmail.com>
Wed, 24 Nov 2021 00:07:14 +0000 (19:07 -0500)
committerChristian Lamparter <chunkeey@gmail.com>
Tue, 30 Nov 2021 21:29:24 +0000 (22:29 +0100)
commit79ceea43032f9e70fdf8e5280f5af62cc175a9f5
tree65b2802555809c8f02bb8d3bac18bbaee42473bd
parent7c99085bd69742f66207d61e9f2da5ec4f8f9d2f
mpc85xx: Fix HiveAP-330 nvmem mac loader

We actually need to enclose the whole section of partitions in a
`partitions { ... }` to assign it a `compatible = "fixed-partitions";
otherwise the partition referred to by `hwinfo` won't be registered
when bringing up MTD partitions, for example as per:

- <https://forum.openwrt.org/t/tp-link-c2600-missing-default-mac-mtd-partition-in-snapshot/103945/6>

- commit e2b03c16eb44 ("ipq806x: add missing enclosing partitions block for TP-Link C2600")'

Fixes: 8ec21d6bb210 ("mpc85xx: convert mtd-mac-address to nvmem implementation")
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
[minor beautification]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts