diff options
author | Lino Sanfilippo <[email protected]> | 2022-07-10 18:44:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-07-14 16:34:24 +0200 |
commit | 4dfd10351e49a767f145fb0f6bf7f408f54ab94b (patch) | |
tree | b5751584c12b79e884c95b4b941bfd05ca66db28 /scripts/gdb/linux/lists.py | |
parent | d8fcd9cfbde5acd42a407d8b48fa80ad9d513bde (diff) |
serial: core: sanitize RS485 delays read from device tree
Currently the RTS delays set via device tree are not clamped to a maximum
value although the device tree bindings documentation for RS485 claims that
only a maximum of 1000 msecs is allowed.
So clamp the values to avoid arbitrary high delay settings. However clamp
the values to 100 instead of 1000 msecs to be consistent which the maximum
that is allowed when setting the delays from userspace via the UART ioctl
TIOCSRS485.
Signed-off-by: Lino Sanfilippo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions