[PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

Tom Rini trini at konsulko.com
Wed Oct 25 01:16:39 CEST 2023


On Sat, Aug 26, 2023 at 03:16:52PM +0300, Andrey Skvortsov wrote:

> u-boot adds reserve-memory node, if it's missing, with following
> properties:
> 
> ```
>     reserved-memory {
>          #address-cells = <2>;
>          #size-cells = <2>;
>          ranges;
>     }
> ```
> 
> But with these default address-cells and size-cells values, pstore
> isn't working on A64. Root node for A64 defines 'address-cells' and
> 'size-cells' as 1.
> 
> dtc complains if reserved-memory has different address-cells and
> size-cells.
> 
> ```
>      Warning (ranges_format): /reserved-memory:ranges: empty "ranges"
>      property but its #address-cells (2) differs from / (1)
> ```
> 
> This patch takes into account address-cells and size-cells of the root
> node and uses them as values for new reserved-memory node.
> 
> Signed-off-by: Andrey Skvortsov <andrej.skvortzov at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231024/2bcb8347/attachment.sig>


More information about the U-Boot mailing list