From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Nícolas F. R. A. Prado" <nfraprado@collabora.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Trevor Wu <trevor.wu@mediatek.com>,
kernel@collabora.com, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 7/8] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DMIC backend to dai-link
Date: Wed, 26 Feb 2025 16:00:35 +0100 [thread overview]
Message-ID: <bed0195c-8691-4269-9d29-7fb820087f03@kernel.org> (raw)
In-Reply-To: <9240905b-29af-4ea7-8ff9-a0cb2233da72@notapiano>
On 26/02/2025 14:30, Nícolas F. R. A. Prado wrote:
> On Wed, Feb 26, 2025 at 09:22:29AM +0100, Krzysztof Kozlowski wrote:
>> On Tue, Feb 25, 2025 at 11:33:53AM -0300, Nícolas F. R. A. Prado wrote:
>>> MT8188 platforms also have DMIC DAIs, which were previously undescribed.
>>> Add DMIC_BE as a possible backend for the dai-link property.
>>>
>>> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>>> ---
>>> Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
>>> index 362e729b51b43ec16716aee70ad736420def81f3..8c77e7f68ad7b6f5b88b53cedccb291139a2eeea 100644
>>> --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
>>> +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml
>>> @@ -62,6 +62,7 @@ patternProperties:
>>> - PCM1_BE
>>> - DL_SRC_BE
>>> - UL_SRC_BE
>>> + - DMIC_BE
>>
>> Any reason why you keep adding to the end of the lists but not
>> alphabetically sorted? It's enum, so it's expected to be sorted which
>> reduces conflicts between edits. Last commit already broke sorting :/
>
> Well, I wasn't aware enums were supposed to be sorted. That doesn't seem to be
If the code is sorted, which was the case here, why there has to be an
explicit rule telling you must sort it? Just keep existing style.
> documented anywhere. In fact, in example-schema.yaml the enum is not sorted [1].
Way of avoiding conflicts in some sort of lists is valid more or less
everywhere.
> So it'd be great to update that example to follow that rule as well as
> explicitly document it. Maybe even a dt-binding check that checks for this?
> That'll make it much easier to learn about and follow this rule :).
That would lead to numerous exceptions, because some places choose to
sort not alphanumerically and that's fine as well.
If checkpatch was no written in Perl, I would be happy to grow the tool,
but from all cryptic languages to re-learn again Rust is much higher
than Perl.
>
> I don't think it'd be worth it to send another patch just to fix sorting in
> this case as it's already been merged, but I'll keep this in mind whenever I
> send future dt-binding patches.
Indeed, I found only later that Mark applied.
>
> Thanks,
> Nícolas
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/example-schema.yaml#n52
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-02-26 15:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 14:33 [PATCH v2 0/8] Enable DMIC for Genio 700/510 EVK Nícolas F. R. A. Prado
2025-02-25 14:33 ` [PATCH v2 1/8] ASoC: mediatek: mt8188: Add audsys hires clocks Nícolas F. R. A. Prado
2025-02-25 14:42 ` AngeloGioacchino Del Regno
2025-02-25 14:33 ` [PATCH v2 2/8] ASoC: mediatek: mt8188: Add reference for dmic clocks Nícolas F. R. A. Prado
2025-02-25 14:41 ` AngeloGioacchino Del Regno
2025-02-25 14:33 ` [PATCH v2 3/8] ASoC: mediatek: mt8188: Treat DMIC_GAINx_CUR as non-volatile Nícolas F. R. A. Prado
2025-02-25 14:41 ` AngeloGioacchino Del Regno
2025-02-25 14:33 ` [PATCH v2 4/8] ASoC: mediatek: mt8188: Add support for DMIC Nícolas F. R. A. Prado
2025-02-25 14:41 ` AngeloGioacchino Del Regno
2025-02-25 14:33 ` [PATCH v2 5/8] ASoC: mediatek: mt8188-mt6359: Add DMIC support Nícolas F. R. A. Prado
2025-02-25 14:33 ` [PATCH v2 6/8] arm64: dts: mediatek: mt8390-genio-common: Add routes for DMIC Nícolas F. R. A. Prado
2025-02-25 14:33 ` [PATCH v2 7/8] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add DMIC backend to dai-link Nícolas F. R. A. Prado
2025-02-25 14:41 ` AngeloGioacchino Del Regno
2025-02-26 8:22 ` Krzysztof Kozlowski
2025-02-26 13:30 ` Nícolas F. R. A. Prado
2025-02-26 15:00 ` Krzysztof Kozlowski [this message]
2025-02-25 14:33 ` [PATCH v2 8/8] arm64: dts: mediatek: mt8390-genio-common: Add delay codec for DMIC Nícolas F. R. A. Prado
2025-02-25 14:41 ` AngeloGioacchino Del Regno
2025-02-25 19:32 ` (subset) [PATCH v2 0/8] Enable DMIC for Genio 700/510 EVK Mark Brown
2025-02-26 9:24 ` AngeloGioacchino Del Regno
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=bed0195c-8691-4269-9d29-7fb820087f03@kernel.org \
--to=krzk@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nfraprado@collabora.com \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=tiwai@suse.com \
--cc=trevor.wu@mediatek.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