RTEMS | Backport 6.2: bsps/shared: NS16550 driver updates the line control register during operation (#5187)

Jan Sommer (@thesummer) gitlab at rtems.org
Thu Jan 23 14:04:12 UTC 2025



Jan Sommer created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5187



Backport of https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5179

## Summary

Calling `tcsetattr` even with only changes to the timeout conditions will reset the line control register temporary which can corrupt ongoing data transfers.

## Steps to reproduce

* Continuously write data to the serial port (ideally with high baud rates like 921600 bps).
* Change the timing settings like `VMIN` or `VTIME`
* Receive corrupted data

## Expected behaviour

* Data transfer is not corrupted.

<!--
Please add at least an architecture and BSP label.
-->

### Pre-set options

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5187
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250123/d7567600/attachment-0001.htm>


More information about the bugs mailing list