diff mbox series

ASoC: dt-bindings: davinci-mcasp: Fix interrupt properties

Message ID 20241003083611.461894-1-miquel.raynal@bootlin.com (mailing list archive)
State Accepted
Commit 8380dbf1b9ef66e3ce6c1d660fd7259637c2a929
Headers show
Series ASoC: dt-bindings: davinci-mcasp: Fix interrupt properties | expand

Commit Message

Miquel Raynal Oct. 3, 2024, 8:36 a.m. UTC
Combinations of "tx" alone, "rx" alone and "tx", "rx" together are
supposedly valid (see link below), which is not the case today as "rx"
alone is not accepted by the current binding.

Let's rework the two interrupt properties to expose all correct
possibilities.

Cc: Péter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/linux-sound/20241003102552.2c11840e@xps-13/T/#m277fce1d49c50d94e071f7890aed472fa2c64052
Fixes: 8be90641a0bb ("ASoC: dt-bindings: davinci-mcasp: convert McASP bindings to yaml schema")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
Hello Mark,
This patch applies on top of the one you already took, but if you prefer
you can squash them together, I don't mind.
Cheers,
Miquèl
---
 .../bindings/sound/davinci-mcasp-audio.yaml    | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Comments

Krzysztof Kozlowski Oct. 4, 2024, 6:48 a.m. UTC | #1
On Thu, Oct 03, 2024 at 10:36:11AM +0200, Miquel Raynal wrote:
> Combinations of "tx" alone, "rx" alone and "tx", "rx" together are
> supposedly valid (see link below), which is not the case today as "rx"
> alone is not accepted by the current binding.
> 
> Let's rework the two interrupt properties to expose all correct
> possibilities.
> 
> Cc: Péter Ujfalusi <peter.ujfalusi@gmail.com>
> Link: https://lore.kernel.org/linux-sound/20241003102552.2c11840e@xps-13/T/#m277fce1d49c50d94e071f7890aed472fa2c64052
> Fixes: 8be90641a0bb ("ASoC: dt-bindings: davinci-mcasp: convert McASP bindings to yaml schema")
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof
Mark Brown Oct. 7, 2024, 4:08 p.m. UTC | #2
On Thu, 03 Oct 2024 10:36:11 +0200, Miquel Raynal wrote:
> Combinations of "tx" alone, "rx" alone and "tx", "rx" together are
> supposedly valid (see link below), which is not the case today as "rx"
> alone is not accepted by the current binding.
> 
> Let's rework the two interrupt properties to expose all correct
> possibilities.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: dt-bindings: davinci-mcasp: Fix interrupt properties
      commit: 8380dbf1b9ef66e3ce6c1d660fd7259637c2a929

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml
index ab3206ffa4af..beef193aaaeb 100644
--- a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml
+++ b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml
@@ -102,21 +102,21 @@  properties:
     default: 2
 
   interrupts:
-    oneOf:
-      - minItems: 1
-        items:
-          - description: TX interrupt
-          - description: RX interrupt
-      - items:
-          - description: common/combined interrupt
+    minItems: 1
+    maxItems: 2
 
   interrupt-names:
     oneOf:
-      - minItems: 1
+      - description: TX interrupt
+        const: tx
+      - description: RX interrupt
+        const: rx
+      - description: TX and RX interrupts
         items:
           - const: tx
           - const: rx
-      - const: common
+      - description: Common/combined interrupt
+        const: common
 
   fck_parent:
     $ref: /schemas/types.yaml#/definitions/string