From: Krzysztof Kozlowski <krzk@kernel.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org,
Jaehoon Chung <jh80.chung@samsung.com>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
Ping Gao <ping.gao@samsung.com>
Subject: Re: [PATCH] dt-bindings: mmc: samsung,exynos-dw-mshc: Make both clocks required
Date: Fri, 6 Mar 2026 14:08:11 +0100 [thread overview]
Message-ID: <aa85df27-ebbb-472a-a300-f8ae87080ee3@kernel.org> (raw)
In-Reply-To: <CAPDyKFosu5=gAb0QzhkACO6RhXkOFNiKKOSdwrDsezT-bx4U2w@mail.gmail.com>
On 06/03/2026 13:55, Ulf Hansson wrote:
> On Fri, 6 Mar 2026 at 12:50, Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>
>> On 06/03/2026 12:27, Ulf Hansson wrote:
>>> The current binding allows one or two clocks to be specified, which is
>>
>> It allows only 2 clocks, unless you meant that referenced dw-mshc schema
>> allows one clock. I don't see it there, so I am a bit confused.
>>
>>> wrong, as both clocks are needed. This is also confirmed by looking at the
>>> exiting upstream DTS files. Let's update the binding to fix this.
>>>
>>> Cc: Ping Gao <ping.gao@samsung.com>
>>> Reported-by: Krzysztof Kozlowski <krzk@kernel.org>
>>> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>>> ---
>>> .../devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml b/Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml
>>> index 27c4060f2f91..3e560dde714e 100644
>>> --- a/Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml
>>> +++ b/Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml
>>> @@ -42,6 +42,7 @@ properties:
>>> maxItems: 1
>>>
>>> clocks:
>>> + minItems: 2
>>
>> That's redundant, 2 clocks are already implied.
>
> Doesn't maxItems mean the maximum number of clocks? And since clocks
> are required, it means that it's perfectly fine to only have one?
>
> My points is, we seems to be requiring *exactly* two clocks, no?
minItems is already (implied) at 2, so I don't see what is different
here. You can open any other binding and see exactly same pattern
everywhere, so that's why it would be good to see here explanation why
this binding is different than others. IOW, what set here the number of
items to 1?
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-03-06 13:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 11:27 [PATCH] dt-bindings: mmc: samsung,exynos-dw-mshc: Make both clocks required Ulf Hansson
2026-03-06 11:50 ` Krzysztof Kozlowski
2026-03-06 12:55 ` Ulf Hansson
2026-03-06 13:08 ` Krzysztof Kozlowski [this message]
2026-03-09 12:20 ` Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa85df27-ebbb-472a-a300-f8ae87080ee3@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jh80.chung@samsung.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ping.gao@samsung.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox