]> git.baikalelectronics.ru Git - uboot.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)
commit7fbf486ba4e8be10e784bf50912698c142caf61f
treea1453abc075dc3c602124909a13413219f425841
parentdeca831deb902f3a46ddee20bab8d95ca0cd29f3
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: cabe34d16a95 ("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