dt-bindings: mmc: PL18x stop relying on order of dma-names
Subsystems (2)
PATCH 1/1 dt-bindings: mmc: PL18x stop relying on order of dma-names
We don't care in which order are "rx" and "tx" DMA names supplied.
Fixes 4df297aaeb9c ("dt-bindings: mmc: Add missing properties used in examples")
Signed-off-by David Heidelberg <[email protected]>
--- Documentation/devicetree/bindings/mmc/arm,pl18x.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mmc/arm,pl18x.yaml +7 -3
@@ -70,9 +70,13 @@ properties: maxItems: 2 dma-names: - items: - - const: rx - - const: tx + oneOf: + - items: + - const: tx + - const: rx + - items: + - const: rx + - const: tx power-domains: true
Signature · 1 line
2.34.1
Quoted 5 lines · David Heidelberg
We don't care in which order are "rx" and "tx" DMA names supplied.
Fixes 4df297aaeb9c ("dt-bindings: mmc: Add missing properties used in examples")Signed-off-by David Heidelberg <[email protected]>
Good catch!
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
Quoted 6 lines · David Heidelberg
We don't care in which order are "rx" and "tx" DMA names supplied.
Fixes 4df297aaeb9c ("dt-bindings: mmc: Add missing properties used in examples")Signed-off-by David Heidelberg <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 28 lines
--- Documentation/devicetree/bindings/mmc/arm,pl18x.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/mmc/arm,pl18x.yaml +7
-4@@ -70,9 +70,13 @@ properties: maxItems: 2 dma-names: - items: - - const: rx - - const: tx + oneOf: + - items: + - const: tx + - const: rx + - items: + - const: rx + - const: tx power-domains: true --2.34.1
Rob Herring
maintainerQuoted 2 lines · David Heidelberg
We don't care in which order are "rx" and "tx" DMA names supplied.
I do. Other than avoiding dts changes, why do we need undefined order here?
Quoted 2 lines
Fixes 4df297aaeb9c ("dt-bindings: mmc: Add missing properties used in examples")
Drop the blank line.
Quoted 13 lines
Signed-off-by David Heidelberg <[email protected]>--- Documentation/devicetree/bindings/mmc/arm,pl18x.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/mmc/arm,pl18x.yaml +0
-0@@ -70,9 +70,13 @@ properties: maxItems: 2 dma-names:
Documentation/devicetree/bindings/mmc/arm,pl18x.yaml properties: · line 79
Quoted 10 lines
Documentation/devicetree/bindings/mmc/arm,pl18x.yaml +7
-3- items: - - const: rx - - const: tx + oneOf: + - items: + - const: tx + - const: rx + - items: + - const: rx + - const: tx
For future reference, the concise way to express this is:
maxItems: 2
items:
enum: [ rx, tx ]
Quoted 7 lines
Documentation/devicetree/bindings/mmc/arm,pl18x.yaml +0
-0power-domains: trueSignature · 1 line
2.34.1