Skip to contentSkip to conversation

one char delay

DISCUSSION Oleksij Rempel 1 participant 2 messages Aug 14, 2014 – Aug 15, 2014 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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 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.

Quoted 5 lines

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

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