]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: stm32: extend TC timeout
authorValentin Caron <valentin.caron@foss.st.com>
Fri, 4 Aug 2023 14:09:04 +0000 (16:09 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 16 Aug 2023 13:38:23 +0000 (15:38 +0200)
commit9e8cbea1a74516235820ccd50d513c961e43cb70
treea1453abc075dc3c602124909a13413219f425841
parentc9678850bdef44bd7cab6238c56151b54d809047
serial: stm32: extend TC timeout

Waiting 150us TC bit couldn't be enough.

If TFA lets 16 bits in USART fifo, we has to wait 16 times 87 us (time
of 10 bits (1 byte in most use cases) at a baud rate of 115200).

Fixes: b4dbc5d65a67 ("serial: stm32: Wait TC bit before performing initialization")
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/serial/serial_stm32.c