>>>>> "Michal" == Michal Simek <monstr@xxxxxxxxx> writes: Michal> Hi Peter, [cc: Grant] Michal> I have found one thing which I would like to check with you. Michal> It is about mdm console which is uartlite compatible but it is slow. Michal> The problem which I think it is there is in ulite_transmit function if Michal> TXFULL is reported then it was returned 0. ulite_transmit is called from Michal> do-while loop in ulite_isr (shown below). Michal> do { Michal> int stat = readb(port->membase + ULITE_STATUS); Michal> busy = ulite_receive(port, stat); Michal> busy |= ulite_transmit(port, stat); Michal> } while (busy); Michal> If tx is full then loop ends but there could be a lot of characters Michal> which need to be send that's why will be good to wait a little bit. I Michal> think it could be done by returning 1 in that case. Michal> What do you think? Patch is below. That would make us spin in the interrupt for potentially quite a while, E.G. until all data is transferred to the TX fifo. What kind of problem are you trying to fix in the first place? You should get an interrupt when the TX fifo empties, which fill completely fill up the fifo again and so on - That should work just fine even with a low baud rate. -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html