From: sashiko-bot@kernel.org
To: "James Calligeros" <jcalligeros99@gmail.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 01/22] ASoC: dt-bindings: cs42l84: Allow referenced dai-common properties
Date: Tue, 03 Nov 2026 07:53:49 +0000 [thread overview]
Message-ID: <sashiko-outbox-194759@kernel.org> (raw)
In-Reply-To: <20261103-macaudio-v4-1-637484efe46d@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] ASoC: dt-bindings: cs42l84: loss of #sound-dai-cells const: 0 constraint
--
commit 51c8f9a50da0d86d550f375ea1f80d7bccc11075
Author: James Calligeros <jcalligeros99@gmail.com>
ASoC: dt-bindings: cs42l84: Allow referenced dai-common properties
This patch updates the cirrus,cs42l84 Devicetree binding schema to reference
dai-common.yaml, switches additionalProperties to unevaluatedProperties, and
removes the explicit #sound-dai-cells property definition.
> ASoC: dt-bindings: cs42l84: Allow referenced dai-common properties
>
> Some consumers may wish to prepend the codec's name with a known value
> to identify a specific codec among many and set #sound-dai-cells. Allow
> this by allowing referenced properties from dai-common.yaml.
>
> Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
> diff --git a/Documentation/devicetree/bindings/sound/cirrus,cs42l84.yaml b/Documentation/devicetree/bindings/sound/cirrus,cs42l84.yaml
> index 94062c1d9d45f..66cae8b7db5da 100644
> --- a/Documentation/devicetree/bindings/sound/cirrus,cs42l84.yaml
> +++ b/Documentation/devicetree/bindings/sound/cirrus,cs42l84.yaml
> @@ -9,6 +9,9 @@ title: Cirrus Logic CS42L84 audio CODEC
> maintainers:
> - Martin Povišer <povik+lin@cutebit.org>
>
> +allOf:
> + - $ref: dai-common.yaml#
> +
> description: |
> The CS42L84 is a headphone jack codec made by Cirrus Logic and embedded
> in personal computers sold by Apple. It was first seen in 2021 Macbook
> @@ -29,14 +32,11 @@ properties:
> interrupts:
> maxItems: 1
>
> - '#sound-dai-cells':
> - const: 0
> -
[Severity: Low]
Does removing the const: 0 constraint on #sound-dai-cells weaken schema
validation for cirrus,cs42l84 nodes?
Documentation/devicetree/bindings/sound/dai-common.yaml only sets:
properties:
'#sound-dai-cells': true
However, the CS42L84 driver in sound/soc/codecs/cs42l84.c registers only a
single DAI in cs42l84_i2c_probe():
ret = devm_snd_soc_register_component(&i2c_client->dev,
&soc_component_dev_cs42l84, &cs42l84_dai, 1);
Without const: 0 in cirrus,cs42l84.yaml, dtbs_check will allow non-zero
#sound-dai-cells values even though the codec only supports 0 cells.
Also, since cirrus,cs42l84.yaml already permitted #sound-dai-cells prior to
this change, should the commit message be updated so it does not claim that
referencing dai-common.yaml is needed to allow setting #sound-dai-cells, and
should '#sound-dai-cells': const: 0 be retained here?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103-macaudio-v4-0-637484efe46d@gmail.com?part=1
next prev parent reply other threads:[~2026-11-03 7:53 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 7:39 [PATCH v4 00/22] Add speaker and headset jack support for Apple Silicon Macs James Calligeros
2026-11-03 7:39 ` [PATCH v4 01/22] ASoC: dt-bindings: cs42l84: Allow referenced dai-common properties James Calligeros
2026-11-03 7:53 ` sashiko-bot [this message]
2026-11-04 10:48 ` Krzysztof Kozlowski
2026-11-04 10:59 ` James Calligeros
2026-11-03 7:39 ` [PATCH v4 02/22] ASoC: dt-bindings: cs42l42: " James Calligeros
2026-11-03 7:51 ` sashiko-bot
2026-11-04 10:49 ` Krzysztof Kozlowski
2026-11-04 10:52 ` Krzysztof Kozlowski
2026-11-04 10:58 ` James Calligeros
2026-11-04 11:04 ` Krzysztof Kozlowski
2026-11-03 7:39 ` [PATCH v4 03/22] ASoC: dt-bindings: tdm-slot: Allow indexed TDM idle properties James Calligeros
2026-11-03 7:39 ` [PATCH v4 04/22] ASoC: dt-bindings: Add binding for Apple Silicon Mac audio James Calligeros
2026-11-03 7:58 ` sashiko-bot
2026-11-03 7:39 ` [PATCH v4 05/22] ASoC: ops: Introduce 'snd_soc_ctl_activate' James Calligeros
2026-11-03 7:39 ` [PATCH v4 06/22] ASoC: ops: Introduce 'soc_set_enum_kctl' James Calligeros
2026-11-03 8:06 ` sashiko-bot
2026-11-03 7:39 ` [PATCH v4 07/22] ASoC: card: Let 'fixup_controls' return errors James Calligeros
2026-11-03 7:39 ` [PATCH v4 08/22] ASoC: tas2770: Add compatible for TAS5770L James Calligeros
2026-11-03 7:39 ` [PATCH v4 09/22] ASoC: apple: Add macaudio machine driver James Calligeros
2026-11-03 8:28 ` sashiko-bot
2026-11-03 7:39 ` [PATCH v4 10/22] arm64: dts: apple: t8103-jxxx: Add regulators for CS42L83 power supply James Calligeros
2026-11-03 7:39 ` [PATCH v4 11/22] arm64: dts: apple: t8103-j274: Add speaker/headset jack nodes James Calligeros
2026-11-03 8:15 ` sashiko-bot
2026-11-03 7:40 ` [PATCH v4 12/22] arm64: dts: apple: t8103-j313: " James Calligeros
2026-11-03 8:36 ` sashiko-bot
2026-11-03 7:40 ` [PATCH v4 13/22] arm64: dts: apple: t8103-j293: " James Calligeros
2026-11-03 8:52 ` sashiko-bot
2026-11-03 7:40 ` [PATCH v4 14/22] arm64: dts: apple: t8103-j45x: Add headset " James Calligeros
2026-11-03 7:40 ` [PATCH v4 15/22] arm64: dts: apple: t8112-j413: Add speaker/headset " James Calligeros
2026-11-03 7:40 ` [PATCH v4 16/22] arm64: dts: apple: t8112-j415: " James Calligeros
2026-11-03 7:40 ` [PATCH v4 17/22] arm64: dts: apple: t8112-j473: " James Calligeros
2026-11-03 7:40 ` [PATCH v4 18/22] arm64: dts: apple: t8112-j493: " James Calligeros
2026-11-03 7:40 ` [PATCH v4 19/22] arm64: dts: apple: t600x-j31x: " James Calligeros
2026-11-03 7:40 ` [PATCH v4 20/22] arm64: dts: apple: t600x-j375: " James Calligeros
2026-11-03 7:40 ` [PATCH v4 21/22] arm64: dts: apple: t602x-j41x: " James Calligeros
2026-11-03 7:40 ` [PATCH v4 22/22] arm64: dts: apple: t602x-j47x: " James Calligeros
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=sashiko-outbox-194759@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jcalligeros99@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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