]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: stm32: BRR must be set only when usart is disable
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 31 May 2023 06:01:31 +0000 (08:01 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 16 Jun 2023 09:29:29 +0000 (11:29 +0200)
commit8ab9e8ffdf0977ce5101a4d71b75655667eced5e
tree0ed7b0423702ff30457c3280f926f846f5ebb5ae
parentb4dbc5d65a67456db9cfe874d123e1c87860301d
serial: stm32: BRR must be set only when usart is disable

To avoid spurious chars, BRR register must only be written when
USART is disabled.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/serial/serial_stm32.c