[Pdbg] [PATCH] p9-kernel.dts: Fix sbefifo-mem dtc warning
Amitay Isaacs
amitay at ozlabs.org
Mon Oct 21 18:56:41 AEDT 2019
On Fri, 2019-10-18 at 11:36 +1030, Joel Stanley wrote:
> p9-kernel.dts:1212.18-1214.6: Warning (unit_address_vs_reg):
> /kernelfsi at 0/sbefifo at 2400/sbefifo-mem at 0: node has a unit name, but no
> reg property
> p9-kernel.dts:2422.19-2424.7: Warning (unit_address_vs_reg):
> /kernelfsi at 0/hmfsi at 100000/sbefifo at 2400/sbefifo-mem at 0: node has a unit
> name, but no reg property
>
Just adding "<0>" reg generates lot more warnings!
Warning (reg_format): /kernelfsi at 0/sbefifo at 2400/sbefifo-mem at 0:reg:
property has invalid length (4 bytes) (#address-cells == 2, #size-cells
== 1)
Warning (reg_format): /kernelfsi at 0/hmfsi at 100000/sbefifo at 2400
/sbefifo-mem at 0:reg: property has invalid length (4 bytes) (#address-
cells == 2, #size-cells == 1)
Warning (pci_device_reg): Failed prerequisite 'reg_format'
Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
Warning (simple_bus_reg): Failed prerequisite 'reg_format'
Warning (avoid_default_addr_size): /kernelfsi at 0/sbefifo at 2400
/sbefifo-mem at 0: Relying on default #address-cells value
Warning (avoid_default_addr_size): /kernelfsi at 0/sbefifo at 2400
/sbefifo-mem at 0: Relying on default #size-cells value
Warning (avoid_default_addr_size): /kernelfsi at 0/hmfsi at 100000
/sbefifo at 2400/sbefifo-mem at 0: Relying on default #address-cells value
Warning (avoid_default_addr_size): /kernelfsi at 0/hmfsi at 100000
/sbefifo at 2400/sbefifo-mem at 0: Relying on default #size-cells value
Warning (avoid_unnecessary_addr_size): Failed prerequisite
'avoid_default_addr_size'
Warning (unique_unit_address): Failed prerequisite
'avoid_default_addr_size'
Correct solution would be to add #address-cells and #size-cells for
sbefifo at 2400 and then using the right number of arguments for reg
property.
> Signed-off-by: Joel Stanley <joel at jms.id.au>
> ---
> p9-kernel.dts.m4 | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/p9-kernel.dts.m4 b/p9-kernel.dts.m4
> index aa4bcac16fcb..39c072fb3cec 100644
> --- a/p9-kernel.dts.m4
> +++ b/p9-kernel.dts.m4
> @@ -30,7 +30,8 @@
> device-path = "/dev/sbefifo1";
>
> sbefifo-mem at 0 {
> - compatible = "ibm,sbefifo-mem";
> + reg = <0>;
> + compatible = "ibm,sbefifo-mem";
> };
> };
>
> @@ -59,7 +60,8 @@
> device-path = "/dev/sbefifo2";
>
> sbefifo-mem at 0 {
> - compatible = "ibm,sbefifo-mem";
> + reg = <0>;
> + compatible = "ibm,sbefifo-mem";
> };
> };
> };
> --
> 2.23.0
>
Amitay.
--
The man with imagination is never alone.
More information about the Pdbg
mailing list