ipq40xx: GL-B1300: convert to new partitions layout
authorChristian Lamparter <chunkeey@gmail.com>
Mon, 17 Dec 2018 10:49:54 +0000 (11:49 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 17 Dec 2018 13:22:28 +0000 (14:22 +0100)
commit5ae45dc7b30c928ad7aaf2d8a3b9b6d5eefb4fc2
treeafc759a80d40dd2424c5aef164e9c8f17621d18f
parentb9501cecde238c9e980f5c12c5738e28091c3d27
ipq40xx: GL-B1300: convert to new partitions layout

Alberto Bursi reported:
>The patch "ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300"
>prevents boot on my B1300. I compiled from latest sources.

The GL-B1300 was using the discouraged direct subnodes method to declare
the partitions on the flash.

|The partition table should be a subnode of the flash node and should be named
|'partitions'. This node should have the following property:
|- compatible : (required) must be "fixed-partitions"
|Partitions are then defined in subnodes of the partitions node.
|
|For backwards compatibility partitions as direct subnodes of the flash device are
|supported. This use is discouraged.
|NOTE: also for backwards compatibility, direct subnodes that have a compatible
|string are not considered partitions, as they may be used for other bindings.
<https://www.kernel.org/doc/Documentation/devicetree/bindings/mtd/partition.txt>

Hence, this patch converts the device to the "partitions" layout.

Fixes: 1cbe457cf94 ("ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300")
Reported-by: Alberto Bursi <bobafetthotmail@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts