one char delay
Hello all,
i do some hobby work on porting linux to Alpscale asm9260 SoC and have fallowing problem with serial driver. May be you can help me.
- each RX char will be send to the console only after next chart is entered. For example:
Typed: dmesg
Displ: dmesg
- all chars are immediately send with uart_insert_char() and tty_flip_buffer_push() to the core. So this delay is not insight of driver. I assume, i miss some flag or initialization.
The driver was initially based on atmel_serial.c and ported by Alpscale to 2.4.28.
I reused this code.. which is working with this issue. Here is the driver:
https://github.com/olerem/linux-2.6/blob/arm_9260-2014.07.29/drivers/tty/serial/asm9260_serial.c
Signature · 2 lines
Regards, Oleksij
Am 14.08.2014 um 10:50 schrieb Oleksij Rempel:
Quoted 13 lines
Hello all,
i do some hobby work on porting linux to Alpscale asm9260 SoC and have fallowing problem with serial driver. May be you can help me.
- each RX char will be send to the console only after next chart is entered. For example:
Typed: dmesg
Displ: dmesg
- all chars are immediately send withuart_insert_char()andtty_flip_buffer_push()to the core. So this delay is not insight of driver. I assume, i miss some flag or initialization.
Quoted 5 lines
The driver was initially based on
atmel_serial.cand ported by Alpscale to 2.4.28.
I reused this code.. which is working with this issue. Here is the driver:
https://github.com/olerem/linux-2.6/blob/arm_9260-2014.07.29/drivers/tty/serial/asm9260_serial.c
Never mind.
Problem is solved.
It was buggy driver code. Insight of start_tx some faulty check was not allowing transmit buffers.
Signature · 2 lines
Regards, Oleksij