public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	chunfeng.yun@mediatek.com, gregkh@linuxfoundation.org,
	conor+dt@kernel.org, matthias.bgg@gmail.com, linux@roeck-us.net,
	heikki.krogerus@linux.intel.com, cy_huang@richtek.com,
	linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: usb: mt6360-tcpc: Drop interrupt-names
Date: Thu, 25 Jan 2024 17:02:01 +0000	[thread overview]
Message-ID: <20240125-elective-sermon-32dc2cba79be@spud> (raw)
In-Reply-To: <20240125-disdain-delivery-ff3bf246bbe1@spud>

[-- Attachment #1: Type: text/plain, Size: 3175 bytes --]

On Thu, Jan 25, 2024 at 04:57:33PM +0000, Conor Dooley wrote:
> On Thu, Jan 25, 2024 at 12:41:57PM +0100, AngeloGioacchino Del Regno wrote:
> > Il 25/01/24 11:32, Krzysztof Kozlowski ha scritto:
> > > On 24/01/2024 09:48, AngeloGioacchino Del Regno wrote:
> > > > Il 23/01/24 18:14, Conor Dooley ha scritto:
> > > > > On Mon, Jan 22, 2024 at 11:32:30AM +0100, AngeloGioacchino Del Regno wrote:
> > > > > > Il 19/01/24 17:32, Conor Dooley ha scritto:
> > > > > > > On Fri, Jan 19, 2024 at 10:41:04AM +0100, AngeloGioacchino Del Regno wrote:
> > > > > > > > This IP has only one interrupt, hence interrupt-names is not necessary
> > > > > > > > to have.
> > > > > > > > Since there is no user yet, simply remove interrupt-names.
> > > > > > > 
> > > > > > > I'm a bit confused chief. Patch 2 in this series removes a user of this
> > > > > > > property from a driver, so can you explain how this statement is true?
> > > > > > > 
> > > > > > > Maybe I need to drink a few cans of Monster and revisit this patchset?
> > > > > > > 
> > > > > > 
> > > > > > What I mean with "there is no user" is that there's no device tree with any
> > > > > > mt6360-tcpc node upstream yet, so there is no meaningful ABI breakage.
> > > > > > Different story would be if there was a device tree using this already, in
> > > > > > which case, you can make a required property optional but not remove it.
> > > > > 
> > > > > Not every devicetree lives within the kernel.. If the driver is using
> > > > > it, I'm not inclined to agree that it should be removed.
> > > > 
> > > > I get the point, but as far as I remember, it's not the first time that this
> > > > kind of change is upstreamed.
> > > > 
> > > > I'm fine with keeping things as they are but, since my intention is to actually
> > > > introduce an actual user of this binding upstream, and that actually depends on
> > > > if this change is accepted or not (as I have to know whether I can omit adding
> > > > the interrupt-names property or not)....
> > > > 
> > > > ....may I ask for more feedback/opinions from Rob and/or Krzk?
> > > 
> > > Driver is the user and this is an old binding (released!), thus there
> > > can be out-of-kernel users already.
> > > 
> > > Minor cleanup is not really a reason to affect ABI. You could deprecate
> > > it, though. Driver change is fine.
> > > 
> > 
> > Thanks for the clarification. If USB maintainers want to take the driver part only
> > without me resending this, I'd appreciate that.
> > 
> 
> > The interrupt-names is not a required property in this binding anyway... :-)
> 
> Having -names properties that are not required when the base property is
> always seem so pointless to me, except in cases where they're not
> required for the case where there's one item but required when there are
> more than one. Ultimately they're pointless if not required since they
> can't be relied on. I think dropping it from the driver is required for
> correctness.

Actually, looking at the binding again:

| required:
|   - compatible
|   - interrupts
|   - interrupt-names

It looks like it is a required property after all!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2024-01-25 17:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19  9:41 [PATCH v2 1/2] dt-bindings: usb: mt6360-tcpc: Drop interrupt-names AngeloGioacchino Del Regno
2024-01-19  9:41 ` [PATCH v2 2/2] usb: typec: tcpci_mt6360: Retrieve interrupt by index AngeloGioacchino Del Regno
2024-01-19 11:49 ` [PATCH v2 1/2] dt-bindings: usb: mt6360-tcpc: Drop interrupt-names Rob Herring
2024-01-19 16:32 ` Conor Dooley
2024-01-22 10:32   ` AngeloGioacchino Del Regno
2024-01-23 17:14     ` Conor Dooley
2024-01-24  8:48       ` AngeloGioacchino Del Regno
2024-01-24 16:18         ` Conor Dooley
2024-01-25 10:32         ` Krzysztof Kozlowski
2024-01-25 11:41           ` AngeloGioacchino Del Regno
2024-01-25 16:57             ` Conor Dooley
2024-01-25 17:02               ` Conor Dooley [this message]
2024-01-26  9:15                 ` AngeloGioacchino Del Regno
2024-01-26  9:27                   ` Conor Dooley

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=20240125-elective-sermon-32dc2cba79be@spud \
    --to=conor@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=chunfeng.yun@mediatek.com \
    --cc=conor+dt@kernel.org \
    --cc=cy_huang@richtek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.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