Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Bjorn Andersson <andersson@kernel.org>
Cc: Jingyi Wang <jingyi.wang@oss.qualcomm.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Jassi Brar <jassisinghbrar@gmail.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	aiqun.yu@oss.qualcomm.com, tingwei.zhang@oss.qualcomm.com,
	trilok.soni@oss.qualcomm.com, yijie.yang@oss.qualcomm.com,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org,
	Sibi Sankar <sibi.sankar@oss.qualcomm.com>
Subject: Re: [PATCH v2 2/2] dt-bindings: mailbox: qcom: Add IPCC support for Glymur Platform
Date: Thu, 30 Oct 2025 06:53:59 +0100	[thread overview]
Message-ID: <5468378e-3ca3-45d2-98bf-9388005bba85@kernel.org> (raw)
In-Reply-To: <qyfxtoe7ixko7k5whtzjpkynwpeqxzb2sgwq7y4y3kstblapz5@ggny5uq7qv6s>

On 29/10/2025 18:23, Bjorn Andersson wrote:
> On Wed, Oct 29, 2025 at 04:49:30PM +0100, Krzysztof Kozlowski wrote:
>> On 29/10/2025 09:15, Jingyi Wang wrote:
>>> diff --git a/include/dt-bindings/mailbox/qcom,glymur-ipcc.h b/include/dt-bindings/mailbox/qcom,glymur-ipcc.h
>>> new file mode 100644
>>> index 000000000000..3ab8189974a5
>>> --- /dev/null
>>> +++ b/include/dt-bindings/mailbox/qcom,glymur-ipcc.h
>>> @@ -0,0 +1,68 @@
>>> +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
>>> +/*
>>> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
>>> + */
>>> +
>>> +#ifndef __DT_BINDINGS_MAILBOX_IPCC_GLYMUR_H
>>> +#define __DT_BINDINGS_MAILBOX_IPCC_GLYMUR_H
>>> +
>>> +/* Glymur physical client IDs */
>>> +#define IPCC_MPROC_AOP			0
>>
>>
>> Here the same - not used by Linux.
> 
> How is this different from e.g.:
> 
> include/dt-bindings/interrupt-controller/arm-gic.h:#define GIC_SPI 0

$ git grep GIC_SPI
drivers/irqchip/irq-mchp-eic.c

How is this not used by Linux? What is drivers/irqchip/foo.c if not a
Linux driver?

> 
> Perhaps I'm misunderstanding what you're saying here.
> 
>> Don't add these, they are really not
>> necessary and they are not helping anyhow. For longer explanation see 2
>> year thread for PMIC ADC v7.
>>
> 
> I'm sorry, I'm not able to wrangle a lore query for this, can you please
> provide a link?

"adc v7 qcom" and then my last two or three replies in that thread:
https://lore.kernel.org/all/d7627a5d-893a-4bc3-8b67-c151ee0bea32@kernel.org/

> 
>> Or provide explanation in terms what Linux interface you are binding
>> here (please focus on Linux or other SW).
>>
> 
> Don't we use include/dt-bindings to define hardware constants for use in

No, we do not.

> dt source as well? Has this changed?

Yes, 5 years ago or more when we noticed people do it unnecessarily. You
know, it is difficult to notice it, because we look at bindings and they
seem fine. Finding that something is not used requires more effort which
we usually do not care.

I have few bookmarks but not necessarily the earliest, just something I
managed to find because people ask the same:

2014 (so more than 5 years ago!):
https://lore.kernel.org/all/201401111415.29395.arnd@arndb.de/

A bit newer:
https://lore.kernel.org/linux-devicetree/CAK8P3a0fDJQvGLEtG0fxLkG08Fh9V7LEMPsx4AaS+2Ldo_xWxw@mail.gmail.com/

https://lore.kernel.org/linux-devicetree/CAK8P3a1APzs74YTcZ=m43G3zrmwJZKcYSTvV5eDDQX-37UY7Tw@mail.gmail.com/

https://lore.kernel.org/linux-devicetree/418c5f0c-5279-41f5-3705-345ec9a97ea2@linaro.org/

https://lore.kernel.org/linux-devicetree/c088e01c-0714-82be-8347-6140daf56640@linaro.org/

https://lore.kernel.org/linux-devicetree/579a1569-7bba-491f-ba5e-7cfcb34ccc1f@linaro.org/


Best regards,
Krzysztof

  reply	other threads:[~2025-10-30  5:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-29  8:15 [PATCH v2 0/2] dt-bindings: mailbox: qcom-ipcc: Add IPCC on Kaanapali and Glymur Platforms Jingyi Wang
2025-10-29  8:15 ` [PATCH v2 1/2] dt-bindings: mailbox: qcom: Add IPCC support for Kaanapali Platform Jingyi Wang
2025-10-29 15:16   ` Bjorn Andersson
2025-10-29 15:47     ` Krzysztof Kozlowski
2025-10-29 16:15       ` Bjorn Andersson
2025-10-30  5:55         ` Krzysztof Kozlowski
2025-10-29  8:15 ` [PATCH v2 2/2] dt-bindings: mailbox: qcom: Add IPCC support for Glymur Platform Jingyi Wang
2025-10-29 15:18   ` Bjorn Andersson
2025-10-29 15:49   ` Krzysztof Kozlowski
2025-10-29 17:23     ` Bjorn Andersson
2025-10-30  5:53       ` Krzysztof Kozlowski [this message]
2025-10-30 19:11         ` Bjorn Andersson
2025-10-31  2:04           ` Jingyi Wang

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=5468378e-3ca3-45d2-98bf-9388005bba85@kernel.org \
    --to=krzk@kernel.org \
    --cc=aiqun.yu@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=jingyi.wang@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=robh@kernel.org \
    --cc=sibi.sankar@oss.qualcomm.com \
    --cc=tingwei.zhang@oss.qualcomm.com \
    --cc=trilok.soni@oss.qualcomm.com \
    --cc=yijie.yang@oss.qualcomm.com \
    /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