aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2022-05-19 11:18:07 +0300
committerGreg Kroah-Hartman <[email protected]>2022-05-19 18:32:40 +0200
commit1deeda8d2877c18bc2b9eeee10dd6d2628852848 (patch)
tree470b7755127ee0151c42a870f449e44b017a7884 /tools/perf/scripts/python/export-to-postgresql.py
parent52bb1cb7118564166b04d52387bd8403632f5190 (diff)
serial: stm32-usart: Correct CSIZE, bits, and parity
Add CSIZE sanitization for unsupported CSIZE configurations. In addition, if parity is asked for but CSx was unsupported, the sensible result is CS8+parity which requires setting USART_CR1_M0 like with 9 bits. Incorrect CSIZE results in miscalculation of the frame bits in tty_get_char_size() or in its predecessor where the roughly the same code is directly within uart_update_timeout(). Fixes: c8a9d043947b (serial: stm32: fix word length configuration) Cc: Erwan Le Ray <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions