public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: <Dharma.B@microchip.com>
To: <martin.blumenstingl@googlemail.com>
Cc: <conor@kernel.org>, <ulf.hansson@linaro.org>, <robh@kernel.org>,
	<krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<neil.armstrong@linaro.org>, <khilman@baylibre.com>,
	<jbrunet@baylibre.com>, <linux-mmc@vger.kernel.org>,
	<devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-amlogic@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dt-bindings: mmc: move compatible property to its specific binding
Date: Wed, 8 Jan 2025 03:11:47 +0000	[thread overview]
Message-ID: <39be0bea-c207-4bcd-b464-ca93e91cec93@microchip.com> (raw)
In-Reply-To: <CAFBinCCxZjuXL0duy3ePPDtL1oJS_GZiX3=djXpHR+-6gLkN_w@mail.gmail.com>

Hi Martin,

On 08/01/25 2:04 am, Martin Blumenstingl wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Hi Dharma,
> 
> On Tue, Jan 7, 2025 at 4:34 AM <Dharma.B@microchip.com> wrote:
>>
>> On 20/12/24 1:41 am, Conor Dooley wrote:
>>> On Thu, Dec 19, 2024 at 09:40:41AM +0530, Dharma Balasubiramani wrote:
>>>> Move the `compatible` property into its specific binding to make the MMC
>>>> slot more generic and modular.
>>> This makes no sense, as presented. What's the real reason for this
>>> change? You want to ref mmc-slot.yaml but the compatible is causing a
>>> driver to probe?
>>
>> We don’t have the configuration for that driver enabled. Wouldn’t
>> including the compatible in the DTS files without the actual driver be
>> redundant?
>>
>> Is it the correct approach to add the compatible just to fix the dt
>> binding errors?
> Let me try to summarize what I understand so far:
> - your are trying to convert the dt-binding of atmel-hsmci from .txt to .yaml
> - while doing so Rob asked to reference the mmc-slot schema
> - after referencing the mmc-slot schema you now get warnings in when
> validating the .dts because your .dts doesn't specify compatible =
> "mmc-slot"
> 
> Is that correct?

Yes.
> 
> There aren't many MMC controllers with multiple slot support out there.
> When I wrote the dt-bindings for amlogic,meson-mx-sdio I *think* (it's
> been some years) Ulf pointed out another dt-binding
> (Documentation/devicetree/bindings/mmc/cavium-mmc.txt) and driver
> (drivers/mmc/host/cavium-thunderx.c) that already used the mmc-slot
> compatible string.
> 
>> related discussion:
>> https://lore.kernel.org/lkml/63473475-f29e-4a65-a0aa-1f1e4112b57d@microchip.com/
> Rob has suggested two approaches in that thread:
> - don't mark the "compatible" property as required (in
> Documentation/devicetree/bindings/mmc/mmc-slot.yaml)
> - add the compatible string where needed (I attached a diff with an
> example where I picked one random Atmel board and added the compatible
> string)
> 
> Your patch is different from these suggestions as it forbids the
> compatible property in the generic mmc-slot binding.
> What's the problem with Rob's suggestions? If they cannot be
> implemented then please document why that is.

Thanks for the comprehensive explanation.

I misinterpreted the Rob's suggestion [1].

"One issue is 'compatible' is required. Either that would have to be 
dropped as required."

Instead of just dropping it from "required:", I removed the property 
itself and moved it to another binding.

I will send a v2 by removing it from the required, will it be fine?

> 
> 
> Best regards,
> Martin


-- 
With Best Regards,
Dharma B.

  reply	other threads:[~2025-01-08  3:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-19  4:10 [PATCH] dt-bindings: mmc: move compatible property to its specific binding Dharma Balasubiramani
2024-12-19 20:11 ` Conor Dooley
2025-01-07  3:34   ` Dharma.B
2025-01-07 20:34     ` Martin Blumenstingl
2025-01-08  3:11       ` Dharma.B [this message]
2025-01-08 20:56         ` Martin Blumenstingl
2025-01-20  4:30           ` Dharma.B
2025-02-04  4:24             ` Dharma.B
2025-02-04  8:14               ` neil.armstrong
2025-02-05  3:49                 ` Dharma.B

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=39be0bea-c207-4bcd-b464-ca93e91cec93@microchip.com \
    --to=dharma.b@microchip.com \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --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