linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Brugger <matthias.bgg@gmail.com>
To: AngeloGioacchino Del Regno 
	<angelogioacchino.delregno@collabora.com>,
	Alexandre Mergnat <amergnat@baylibre.com>
Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	jassisinghbrar@gmail.com, chunfeng.yun@mediatek.com,
	vkoul@kernel.org, kishon@kernel.org, thierry.reding@gmail.com,
	u.kleine-koenig@pengutronix.de, chunkuang.hu@kernel.org,
	ck.hu@mediatek.com, jitao.shi@mediatek.com,
	xinlei.lee@mediatek.com, houlong.wei@mediatek.com,
	dri-devel@lists.freedesktop.org,
	linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-phy@lists.infradead.org, linux-pwm@vger.kernel.org,
	kernel@collabora.com, phone-devel@vger.kernel.org,
	~postmarketos/upstreaming@lists.sr.ht
Subject: Re: [PATCH 02/27] dt-bindings: phy: mediatek,dsi-phy: Add compatible for MT6795 Helio X10
Date: Thu, 13 Apr 2023 10:58:57 +0200	[thread overview]
Message-ID: <4b5a6233-c8f3-4d12-7508-45df8b7548f5@gmail.com> (raw)
In-Reply-To: <e129b3ff-90b1-3df7-871e-09fba0a960f4@collabora.com>



On 12/04/2023 15:17, AngeloGioacchino Del Regno wrote:
> Il 12/04/23 15:12, Alexandre Mergnat ha scritto:
>> On 12/04/2023 15:03, AngeloGioacchino Del Regno wrote:
>>> Il 12/04/23 14:59, Alexandre Mergnat ha scritto:
>>>> On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote:
>>>>> Add a compatible string for MediaTek Helio X10 MT6795: this SoC uses
>>>>> the same DSI PHY as MT8173.
>>>>>
>>>>> Signed-off-by: AngeloGioacchino Del Regno 
>>>>> <angelogioacchino.delregno@collabora.com>
>>>>> ---
>>>>>   Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml | 4 ++++
>>>>>   1 file changed, 4 insertions(+)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml 
>>>>> b/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml
>>>>> index 26f2b887cfc1..a9f78344efdb 100644
>>>>> --- a/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml
>>>>> +++ b/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml
>>>>> @@ -24,6 +24,10 @@ properties:
>>>>>             - enum:
>>>>>                 - mediatek,mt7623-mipi-tx
>>>>>             - const: mediatek,mt2701-mipi-tx
>>>>> +      - items:
>>>>> +          - enum:
>>>>> +              - mediatek,mt6795-mipi-tx
>>>>> +          - const: mediatek,mt8173-mipi-tx
>>>>
>>>> AFAIK, it should be:
>>>>        - items:
>>>>            - const: mediatek,mt6795-mipi-tx
>>>>            - const: mediatek,mt8173-mipi-tx
>>>>
>>>> Since it isn't respected above for mt7623, it may be tolerated.
>>>> Please, take this comment as a suggestion, isn't a NAK from me.
>>>>
>>>
>>> First of all, Thanks!
>>> I want to explain, though, the reason for that.
>>>
>>> If you check all the commits, on some I did it as you just proposed, while
>>> on some others I did it with an enum before const: that's simply because I
>>> *totally expect* some to grow, while others (const - const) I was either
>>> unsure, or totally *not* expecting them to grow soon!
>>
>>
>> That's what I thought. IMHO, if someone add another compat later, he will be 
>> on charge to change the const by enum front of your "mediatek,mt6795-mipi-tx". 
>> But my opinion is probably not the most popular.
>>
>> I will not make the same feedback for the other patches in this series.
>>
> 
> I honestly don't know what's the most popular opinion about that... but whatever,
> in any case... just want to make sure to communicate that I don't really have
> strong opinions about doing it one way or the other.
> 
> The arguments in favor and against that are probably 1:1... :-D
> 

Then let me throw in another one :)

Take into account that if we expect the compatible to be added somtimes in the 
future (not the near future) this code will lay around for some time. People 
will take this code as an example for new code, then we will need to explain 
it... In that sense it would make more sense to have all made const: const: and 
change this to enum once a new compatible is added to the mix.

Said all this, I leave it to the DT maintainers to decide :D

Regards,
Matthias

  reply	other threads:[~2023-04-13  9:00 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 11:27 [PATCH 00/27] MediaTek Helio X10 - Mailbox, Display, MMC/SD/SDIO AngeloGioacchino Del Regno
2023-04-12 11:27 ` [PATCH 01/27] dt-bindings: pwm: Add compatible for MediaTek MT6795 AngeloGioacchino Del Regno
2023-04-12 12:30   ` Matthias Brugger
2023-04-12 21:03   ` Rob Herring
2023-04-13  8:52     ` Matthias Brugger
2023-04-13  9:28       ` AngeloGioacchino Del Regno
2023-04-18  0:58       ` Rob Herring
2023-04-14  5:43   ` Uwe Kleine-König
2023-04-18 11:56     ` Matthias Brugger
2023-04-14  8:21   ` Krzysztof Kozlowski
2023-04-14  8:30     ` Uwe Kleine-König
2023-04-14  8:34       ` Krzysztof Kozlowski
2023-04-14 10:25         ` AngeloGioacchino Del Regno
2023-04-14 10:31           ` Krzysztof Kozlowski
2023-04-14 10:31   ` Krzysztof Kozlowski
2023-05-29 13:51   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 02/27] dt-bindings: phy: mediatek,dsi-phy: Add compatible for MT6795 Helio X10 AngeloGioacchino Del Regno
2023-04-12 12:34   ` Matthias Brugger
2023-04-12 12:59   ` Alexandre Mergnat
2023-04-12 13:03     ` AngeloGioacchino Del Regno
2023-04-12 13:12       ` Alexandre Mergnat
2023-04-12 13:17         ` AngeloGioacchino Del Regno
2023-04-13  8:58           ` Matthias Brugger [this message]
2023-04-14  8:22   ` Krzysztof Kozlowski
2023-05-29 14:05     ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 03/27] dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT6795 AngeloGioacchino Del Regno
2023-04-12 12:35   ` Matthias Brugger
2023-04-14  8:23     ` Krzysztof Kozlowski
2023-04-12 13:13   ` Alexandre Mergnat
2023-04-12 21:03   ` Rob Herring
2023-04-14  8:23   ` Krzysztof Kozlowski
2023-05-29 14:07   ` Matthias Brugger
2023-06-13  0:12     ` Chun-Kuang Hu
2023-04-12 11:27 ` [PATCH 04/27] dt-bindings: display: mediatek: aal: " AngeloGioacchino Del Regno
2023-04-12 12:35   ` Matthias Brugger
2023-04-12 13:03   ` Alexandre Mergnat
2023-04-14  8:24   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 05/27] dt-bindings: display: mediatek: dsi: " AngeloGioacchino Del Regno
2023-04-12 12:36   ` Matthias Brugger
2023-04-12 13:21     ` AngeloGioacchino Del Regno
2023-04-12 21:03   ` Rob Herring
2023-04-14  8:24   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 06/27] dt-bindings: display: mediatek: ovl: " AngeloGioacchino Del Regno
2023-04-12 21:03   ` Rob Herring
2023-04-14  8:24   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 07/27] dt-bindings: display: mediatek: rdma: " AngeloGioacchino Del Regno
2023-04-12 21:03   ` Rob Herring
2023-04-14  8:26   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 08/27] dt-bindings: display: mediatek: wdma: " AngeloGioacchino Del Regno
2023-04-12 12:36   ` Matthias Brugger
2023-04-14  8:26   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 09/27] dt-bindings: display: mediatek: color: " AngeloGioacchino Del Regno
2023-04-12 12:37   ` Matthias Brugger
2023-04-12 21:03   ` Rob Herring
2023-04-14  8:26   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 10/27] dt-bindings: display: mediatek: gamma: " AngeloGioacchino Del Regno
2023-04-14  8:27   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 11/27] dt-bindings: display: mediatek: merge: " AngeloGioacchino Del Regno
2023-04-12 12:37   ` Matthias Brugger
2023-04-14  8:33   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 12/27] dt-bindings: display: mediatek: split: " AngeloGioacchino Del Regno
2023-04-12 12:37   ` Matthias Brugger
2023-04-14  8:34   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 13/27] dt-bindings: display: mediatek: ufoe: " AngeloGioacchino Del Regno
2023-04-12 12:38   ` Matthias Brugger
2023-04-12 21:03   ` Rob Herring
2023-04-14  8:44   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 14/27] dt-bindings: display: mediatek: od: " AngeloGioacchino Del Regno
2023-04-12 12:38   ` Matthias Brugger
2023-04-12 21:03   ` Rob Herring
2023-04-14  8:45   ` Krzysztof Kozlowski
2023-04-12 11:27 ` [PATCH 15/27] dt-bindings: mailbox: mediatek,gce-mailbox: Add support for MT6795 AngeloGioacchino Del Regno
2023-04-12 12:38   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 16/27] arm64: dts: mediatek: mt6795: Add support for the CMDQ/GCE mailbox AngeloGioacchino Del Regno
2023-05-29 13:54   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 17/27] arm64: dts: mediatek: mt6795: Add MMSYS node for multimedia clocks AngeloGioacchino Del Regno
2023-05-29 13:55   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 18/27] arm64: dts: mediatek: mt6795: Add support for IOMMU and LARBs AngeloGioacchino Del Regno
2023-05-29 13:56   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 19/27] arm64: dts: mediatek: mt6795: Add support for display blocks and DPI/DSI AngeloGioacchino Del Regno
2023-04-12 11:27 ` [PATCH 20/27] arm64: dts: mediatek: mt6795: Add tertiary PWM node AngeloGioacchino Del Regno
2023-04-12 12:43   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 21/27] arm64: dts: mediatek: mt6795: Add PMIC Wrapper node AngeloGioacchino Del Regno
2023-05-29 13:57   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 22/27] arm64: dts: mediatek: mt6795: Copyright header additions AngeloGioacchino Del Regno
2023-04-12 12:41   ` Matthias Brugger
2023-04-12 13:23     ` AngeloGioacchino Del Regno
2023-04-14  8:46   ` Krzysztof Kozlowski
2023-04-14 10:28     ` AngeloGioacchino Del Regno
2023-04-12 11:27 ` [PATCH 23/27] arm64: dts: mediatek: Add MT6331 PMIC devicetree AngeloGioacchino Del Regno
2023-05-29 13:59   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 24/27] arm64: dts: mediatek: mt6795-xperia-m5: Add MT6331 Combo PMIC AngeloGioacchino Del Regno
2023-05-29 14:00   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 25/27] arm64: dts: mediatek: mt6795-xperia-m5: Add eMMC, MicroSD slot, SDIO AngeloGioacchino Del Regno
2023-05-29 14:01   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 26/27] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMA255 Accelerometer AngeloGioacchino Del Regno
2023-04-12 12:44   ` Matthias Brugger
2023-04-12 11:27 ` [PATCH 27/27] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMM050 Magnetometer AngeloGioacchino Del Regno
2023-04-12 12:44   ` Matthias Brugger

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=4b5a6233-c8f3-4d12-7508-45df8b7548f5@gmail.com \
    --to=matthias.bgg@gmail.com \
    --cc=airlied@gmail.com \
    --cc=amergnat@baylibre.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=chunfeng.yun@mediatek.com \
    --cc=chunkuang.hu@kernel.org \
    --cc=ck.hu@mediatek.com \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=houlong.wei@mediatek.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=jitao.shi@mediatek.com \
    --cc=kernel@collabora.com \
    --cc=kishon@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=phone-devel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=vkoul@kernel.org \
    --cc=xinlei.lee@mediatek.com \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /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;
as well as URLs for NNTP newsgroup(s).