wait_for_lsr
tx_ready = wait_for_lsr(up, bits);
wait_for_lsr(up, bits);
if (wait_for_lsr(up, UART_LSR_THRE))