* [PATCH v2] dt-bindings: serial: rs485: Fix rs485-rts-delay property
@ 2024-09-13 10:55 Michal Simek
2024-09-13 17:24 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Michal Simek @ 2024-09-13 10:55 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: stable, Benjamin Gaignard, Conor Dooley, Greg Kroah-Hartman,
Jiri Slaby, Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list:TTY LAYER AND SERIAL DRIVERS
Code expects array only with 2 items which should be checked.
But also item checking is not working as it should likely because of
incorrect items description.
Fixes: d50f974c4f7f ("dt-bindings: serial: Convert rs485 bindings to json-schema")
Signed-off-by: Michal Simek <michal.simek@amd.com>
Cc: <stable@vger.kernel.org>
---
Changes in v2:
- Remove maxItems properties which are not needed
- Add stable ML to CC
.../devicetree/bindings/serial/rs485.yaml | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml
index 9418fd66a8e9..9665de41762e 100644
--- a/Documentation/devicetree/bindings/serial/rs485.yaml
+++ b/Documentation/devicetree/bindings/serial/rs485.yaml
@@ -18,16 +18,15 @@ properties:
description: prop-encoded-array <a b>
$ref: /schemas/types.yaml#/definitions/uint32-array
items:
- items:
- - description: Delay between rts signal and beginning of data sent in
- milliseconds. It corresponds to the delay before sending data.
- default: 0
- maximum: 100
- - description: Delay between end of data sent and rts signal in milliseconds.
- It corresponds to the delay after sending data and actual release
- of the line.
- default: 0
- maximum: 100
+ - description: Delay between rts signal and beginning of data sent in
+ milliseconds. It corresponds to the delay before sending data.
+ default: 0
+ maximum: 50
+ - description: Delay between end of data sent and rts signal in milliseconds.
+ It corresponds to the delay after sending data and actual release
+ of the line.
+ default: 0
+ maximum: 100
rs485-rts-active-high:
description: drive RTS high when sending (this is the default).
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: serial: rs485: Fix rs485-rts-delay property
2024-09-13 10:55 [PATCH v2] dt-bindings: serial: rs485: Fix rs485-rts-delay property Michal Simek
@ 2024-09-13 17:24 ` Conor Dooley
2024-09-16 5:55 ` Michal Simek
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2024-09-13 17:24 UTC (permalink / raw)
To: Michal Simek
Cc: linux-kernel, monstr, michal.simek, git, stable,
Benjamin Gaignard, Conor Dooley, Greg Kroah-Hartman, Jiri Slaby,
Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list:TTY LAYER AND SERIAL DRIVERS
[-- Attachment #1: Type: text/plain, Size: 2277 bytes --]
On Fri, Sep 13, 2024 at 12:55:23PM +0200, Michal Simek wrote:
> Code expects array only with 2 items which should be checked.
> But also item checking is not working as it should likely because of
> incorrect items description.
>
> Fixes: d50f974c4f7f ("dt-bindings: serial: Convert rs485 bindings to json-schema")
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> Cc: <stable@vger.kernel.org>
> ---
>
> Changes in v2:
> - Remove maxItems properties which are not needed
> - Add stable ML to CC
>
> .../devicetree/bindings/serial/rs485.yaml | 19 +++++++++----------
> 1 file changed, 9 insertions(+), 10 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml
> index 9418fd66a8e9..9665de41762e 100644
> --- a/Documentation/devicetree/bindings/serial/rs485.yaml
> +++ b/Documentation/devicetree/bindings/serial/rs485.yaml
> @@ -18,16 +18,15 @@ properties:
> description: prop-encoded-array <a b>
> $ref: /schemas/types.yaml#/definitions/uint32-array
> items:
> - items:
> - - description: Delay between rts signal and beginning of data sent in
> - milliseconds. It corresponds to the delay before sending data.
> - default: 0
> - maximum: 100
> - - description: Delay between end of data sent and rts signal in milliseconds.
> - It corresponds to the delay after sending data and actual release
> - of the line.
> - default: 0
> - maximum: 100
> + - description: Delay between rts signal and beginning of data sent in
> + milliseconds. It corresponds to the delay before sending data.
> + default: 0
> + maximum: 50
I would expect to see some mention in the commit message as to why the
maximum has changed from 100 to 50 milliseconds.
> + - description: Delay between end of data sent and rts signal in milliseconds.
> + It corresponds to the delay after sending data and actual release
> + of the line.
> + default: 0
> + maximum: 100
>
> rs485-rts-active-high:
> description: drive RTS high when sending (this is the default).
> --
> 2.43.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: serial: rs485: Fix rs485-rts-delay property
2024-09-13 17:24 ` Conor Dooley
@ 2024-09-16 5:55 ` Michal Simek
0 siblings, 0 replies; 3+ messages in thread
From: Michal Simek @ 2024-09-16 5:55 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-kernel, monstr, michal.simek, git, stable,
Benjamin Gaignard, Conor Dooley, Greg Kroah-Hartman, Jiri Slaby,
Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list:TTY LAYER AND SERIAL DRIVERS
On 9/13/24 19:24, Conor Dooley wrote:
> On Fri, Sep 13, 2024 at 12:55:23PM +0200, Michal Simek wrote:
>> Code expects array only with 2 items which should be checked.
>> But also item checking is not working as it should likely because of
>> incorrect items description.
>>
>> Fixes: d50f974c4f7f ("dt-bindings: serial: Convert rs485 bindings to json-schema")
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> Cc: <stable@vger.kernel.org>
>> ---
>>
>> Changes in v2:
>> - Remove maxItems properties which are not needed
>> - Add stable ML to CC
>>
>> .../devicetree/bindings/serial/rs485.yaml | 19 +++++++++----------
>> 1 file changed, 9 insertions(+), 10 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml
>> index 9418fd66a8e9..9665de41762e 100644
>> --- a/Documentation/devicetree/bindings/serial/rs485.yaml
>> +++ b/Documentation/devicetree/bindings/serial/rs485.yaml
>> @@ -18,16 +18,15 @@ properties:
>> description: prop-encoded-array <a b>
>> $ref: /schemas/types.yaml#/definitions/uint32-array
>> items:
>> - items:
>> - - description: Delay between rts signal and beginning of data sent in
>> - milliseconds. It corresponds to the delay before sending data.
>> - default: 0
>> - maximum: 100
>> - - description: Delay between end of data sent and rts signal in milliseconds.
>> - It corresponds to the delay after sending data and actual release
>> - of the line.
>> - default: 0
>> - maximum: 100
>> + - description: Delay between rts signal and beginning of data sent in
>> + milliseconds. It corresponds to the delay before sending data.
>> + default: 0
>> + maximum: 50
>
> I would expect to see some mention in the commit message as to why the
> maximum has changed from 100 to 50 milliseconds.
grrr. I was playing with setting up different values and check if checking is
working. That should be still 100. No reason for value change.
Will fix in v3.
M
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-16 5:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-13 10:55 [PATCH v2] dt-bindings: serial: rs485: Fix rs485-rts-delay property Michal Simek
2024-09-13 17:24 ` Conor Dooley
2024-09-16 5:55 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox