2023-02-15 20:37:39

by Bastian Germann

[permalink] [raw]
Subject: [PATCH v2 2/5] dt-bindings: hwlock: sun6i: Add #hwlock-cells to example

The dt-bindings tools will compile the yaml dt examples
and this prevents an error about this node not existing.

Signed-off-by: Bastian Germann <[email protected]>
---
.../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
index 01b1bbb3061f..38478dad8b25 100644
--- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
+++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
@@ -48,5 +48,6 @@ examples:
reg = <0x01c18000 0x1000>;
clocks = <&ccu CLK_BUS_SPINLOCK>;
resets = <&ccu RST_BUS_SPINLOCK>;
+ #hwlock-cells = <1>;
};
...
--
2.39.1



2023-02-15 20:42:29

by Andre Przywara

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] dt-bindings: hwlock: sun6i: Add #hwlock-cells to example

On Wed, 15 Feb 2023 21:37:07 +0100
Bastian Germann <[email protected]> wrote:

Hi,

> The dt-bindings tools will compile the yaml dt examples
> and this prevents an error about this node not existing.

This needs to be part of patch 1/5, otherwise it will break
bisecting. Just squash the two patches together.

Cheers,
Andre

> Signed-off-by: Bastian Germann <[email protected]>
> ---
> .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
> index 01b1bbb3061f..38478dad8b25 100644
> --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
> +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
> @@ -48,5 +48,6 @@ examples:
> reg = <0x01c18000 0x1000>;
> clocks = <&ccu CLK_BUS_SPINLOCK>;
> resets = <&ccu RST_BUS_SPINLOCK>;
> + #hwlock-cells = <1>;
> };
> ...


2023-02-15 20:44:04

by Bastian Germann

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] dt-bindings: hwlock: sun6i: Add #hwlock-cells to example

Am 15.02.23 um 21:40 schrieb Andre Przywara:
> On Wed, 15 Feb 2023 21:37:07 +0100
> Bastian Germann <[email protected]> wrote:
>
> Hi,
>
>> The dt-bindings tools will compile the yaml dt examples
>> and this prevents an error about this node not existing.
>
> This needs to be part of patch 1/5, otherwise it will break
> bisecting. Just squash the two patches together.

Is this also okay with 1/5 already being applied in linux-next?

>
> Cheers,
> Andre
>
>> Signed-off-by: Bastian Germann <[email protected]>
>> ---
>> .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
>> index 01b1bbb3061f..38478dad8b25 100644
>> --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
>> +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
>> @@ -48,5 +48,6 @@ examples:
>> reg = <0x01c18000 0x1000>;
>> clocks = <&ccu CLK_BUS_SPINLOCK>;
>> resets = <&ccu RST_BUS_SPINLOCK>;
>> + #hwlock-cells = <1>;
>> };
>> ...
>


2023-02-15 23:11:49

by Andre Przywara

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] dt-bindings: hwlock: sun6i: Add #hwlock-cells to example

On Wed, 15 Feb 2023 21:43:50 +0100
Bastian Germann <[email protected]> wrote:

> Am 15.02.23 um 21:40 schrieb Andre Przywara:
> > On Wed, 15 Feb 2023 21:37:07 +0100
> > Bastian Germann <[email protected]> wrote:
> >
> > Hi,
> >
> >> The dt-bindings tools will compile the yaml dt examples
> >> and this prevents an error about this node not existing.
> >
> > This needs to be part of patch 1/5, otherwise it will break
> > bisecting. Just squash the two patches together.
>
> Is this also okay with 1/5 already being applied in linux-next?

The idea of -next is to spot those things before they cause problems. I
don't know if it's already too late, let's see what Bjorn says (see
the other mail).

You could either send a totally separate fix patch (outside of a
series), or a new series with the correct patch. But for now let's wait
how this ends up.

Cheers,
Andre

>
> >
> > Cheers,
> > Andre
> >
> >> Signed-off-by: Bastian Germann <[email protected]>
> >> ---
> >> .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
> >> index 01b1bbb3061f..38478dad8b25 100644
> >> --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
> >> +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
> >> @@ -48,5 +48,6 @@ examples:
> >> reg = <0x01c18000 0x1000>;
> >> clocks = <&ccu CLK_BUS_SPINLOCK>;
> >> resets = <&ccu RST_BUS_SPINLOCK>;
> >> + #hwlock-cells = <1>;
> >> };
> >> ...
> >
>


2023-02-16 08:40:03

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 2/5] dt-bindings: hwlock: sun6i: Add #hwlock-cells to example

On 15/02/2023 21:37, Bastian Germann wrote:
> The dt-bindings tools will compile the yaml dt examples
> and this prevents an error about this node not existing.
>
> Signed-off-by: Bastian Germann <[email protected]>
> ---
> .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 1 +
> 1 file changed, 1 insertion(+)

Acked-by: Krzysztof Kozlowski <[email protected]>

so Bjorn can fix his tree. Can be also squashed with original one.

Best regards,
Krzysztof