2022-08-04 02:23:09

by Tinghan Shen

[permalink] [raw]
Subject: [PATCH v5 02/20] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

The max clock items for the dts node with compatible
'mediatek,mt8195-smi-sub-common' should be 3.

However, the dtbs_check of such node will get following message,
arch/arm64/boot/dts/mediatek/mt8195-evb.dtb: smi@14010000: clock-names:
['apb', 'smi', 'gals0'] is too long
From schema:
Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml

It's because the 'mediatek,mt8195-smi-sub-common' compatible incorrectly
matches the 'else' conditions for gen2 HW without gals.

Rewrite the 'else' condition to specifically identify the compatibles
that utilizing gen2 HW without gals.

Signed-off-by: Tinghan Shen <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno
<[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
---
.../memory-controllers/mediatek,smi-common.yaml | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git
a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
index 71bc5cefb49cf..4f5dd0a20109e 100644
---
a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
+++
b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
@@ -144,7 +144,16 @@ allOf:
- const: gals0
- const: gals1

- else: # for gen2 HW that don't have gals
+ - if: # for gen2 HW that don't have gals
+ properties:
+ compatible:
+ enum:
+ - mediatek,mt2712-smi-common
+ - mediatek,mt6795-smi-common
+ - mediatek,mt8167-smi-common
+ - mediatek,mt8173-smi-common
+
+ then:
properties:
clocks:
minItems: 2
--
2.18.0



2022-08-04 15:32:58

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v5 02/20] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

On 04/08/2022 04:15, Tinghan Shen wrote:
>
> It's because the 'mediatek,mt8195-smi-sub-common' compatible incorrectly
> matches the 'else' conditions for gen2 HW without gals.
>
> Rewrite the 'else' condition to specifically identify the compatibles
> that utilizing gen2 HW without gals.
>
> Signed-off-by: Tinghan Shen <[email protected]>
> Reviewed-by: AngeloGioacchino Del Regno
> <[email protected]>

Unfortunately, your patches got corrupted.


Best regards,
Krzysztof

2022-08-09 11:03:50

by Tinghan Shen

[permalink] [raw]
Subject: Re: [PATCH v5 02/20] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

Hi Krzysztof,

On Thu, 2022-08-04 at 17:12 +0200, Krzysztof Kozlowski wrote:
> On 04/08/2022 04:15, Tinghan Shen wrote:
> >
> > It's because the 'mediatek,mt8195-smi-sub-common' compatible incorrectly
> > matches the 'else' conditions for gen2 HW without gals.
> >
> > Rewrite the 'else' condition to specifically identify the compatibles
> > that utilizing gen2 HW without gals.
> >
> > Signed-off-by: Tinghan Shen <[email protected]>
> > Reviewed-by: AngeloGioacchino Del Regno
> > <[email protected]>
>
> Unfortunately, your patches got corrupted.
>
>
> Best regards,
> Krzysztof

Do you mean rebase to the latest linux-next?
I'll rebase in the next version, thanks!

Best regards,
TingHan

2022-08-09 11:47:13

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v5 02/20] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

On 09/08/2022 14:01, Tinghan Shen wrote:
> Hi Krzysztof,
>
> On Thu, 2022-08-04 at 17:12 +0200, Krzysztof Kozlowski wrote:
>> On 04/08/2022 04:15, Tinghan Shen wrote:
>>>
>>> It's because the 'mediatek,mt8195-smi-sub-common' compatible incorrectly
>>> matches the 'else' conditions for gen2 HW without gals.
>>>
>>> Rewrite the 'else' condition to specifically identify the compatibles
>>> that utilizing gen2 HW without gals.
>>>
>>> Signed-off-by: Tinghan Shen <[email protected]>
>>> Reviewed-by: AngeloGioacchino Del Regno
>>> <[email protected]>
>>
>> Unfortunately, your patches got corrupted.
>>
>>
>> Best regards,
>> Krzysztof
>
> Do you mean rebase to the latest linux-next?
> I'll rebase in the next version, thanks!
>

No, I mean look at the line above. And many other lines. That's not a
proper patch file.

It's not my email client. Lore reports the same.


Best regards,
Krzysztof

2022-08-09 14:20:02

by Nícolas F. R. A. Prado

[permalink] [raw]
Subject: Re: [PATCH v5 02/20] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

On Tue, Aug 09, 2022 at 07:01:10PM +0800, Tinghan Shen wrote:
> Hi Krzysztof,
>
> On Thu, 2022-08-04 at 17:12 +0200, Krzysztof Kozlowski wrote:
> > On 04/08/2022 04:15, Tinghan Shen wrote:
> > >
> > > It's because the 'mediatek,mt8195-smi-sub-common' compatible incorrectly
> > > matches the 'else' conditions for gen2 HW without gals.
> > >
> > > Rewrite the 'else' condition to specifically identify the compatibles
> > > that utilizing gen2 HW without gals.
> > >
> > > Signed-off-by: Tinghan Shen <[email protected]>
> > > Reviewed-by: AngeloGioacchino Del Regno
> > > <[email protected]>
> >
> > Unfortunately, your patches got corrupted.
> >
> >
> > Best regards,
> > Krzysztof
>
> Do you mean rebase to the latest linux-next?
> I'll rebase in the next version, thanks!

Hi TingHan,

the issue is that some line wrapping happened on your patches, which broke tags
and also the diffs themselves (it's very obvious on patch 3). So you need to
sort out your setup so that no longer happens, and resend the patch.

Thanks,
N?colas

2022-08-10 01:54:26

by Tinghan Shen

[permalink] [raw]
Subject: Re: [PATCH v5 02/20] dt-bindings: memory: mediatek: Update condition for mt8195 smi node

On Tue, 2022-08-09 at 09:53 -0400, Nícolas F. R. A. Prado wrote:
> On Tue, Aug 09, 2022 at 07:01:10PM +0800, Tinghan Shen wrote:
> > Hi Krzysztof,
> >
> > On Thu, 2022-08-04 at 17:12 +0200, Krzysztof Kozlowski wrote:
> > > On 04/08/2022 04:15, Tinghan Shen wrote:
> > > >
> > > > It's because the 'mediatek,mt8195-smi-sub-common' compatible incorrectly
> > > > matches the 'else' conditions for gen2 HW without gals.
> > > >
> > > > Rewrite the 'else' condition to specifically identify the compatibles
> > > > that utilizing gen2 HW without gals.
> > > >
> > > > Signed-off-by: Tinghan Shen <[email protected]>
> > > > Reviewed-by: AngeloGioacchino Del Regno
> > > > <[email protected]>
> > >
> > > Unfortunately, your patches got corrupted.
> > >
> > >
> > > Best regards,
> > > Krzysztof
> >
> > Do you mean rebase to the latest linux-next?
> > I'll rebase in the next version, thanks!
>
> Hi TingHan,
>
> the issue is that some line wrapping happened on your patches, which broke tags
> and also the diffs themselves (it's very obvious on patch 3). So you need to
> sort out your setup so that no longer happens, and resend the patch.
>
> Thanks,
> Nícolas

I see. I'll send the next version after fix the weired wrapping...
Thank you.


Best regards,
TingHan