linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG]: 2.6.19.2: Weird serial core issue
@ 2007-01-31 10:49 Aubrey Li
  2007-01-31 16:21 ` Alan
  0 siblings, 1 reply; 12+ messages in thread
From: Aubrey Li @ 2007-01-31 10:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-serial

I insert one printk into drivers/serial/serial_core.c:
uart_set_termios() to describe the issue.
static void uart_set_termios(struct tty_struct *tty, struct termios
*old_termios)
{
 ----snip----
        unsigned int cflag = tty->termios->c_cflag;

        BUG_ON(!kernel_locked());
+++printk("new_termios flag: 0x%x, old_termios flag: 0x%x\n");
+++             cflag, old_termios->c_cflag);

----snip ----
}

When I telnet my board and run the following command:
---- root:~> stty -F /dev/ttyS0 -crtscts

I got the following result from the console of my board:
---- root:~>new_termios flag: 0x1cb1, old_termios flag: 0x80001cb1

That's correct. CRTSCTS flag is clear

But when I type "ENTER" key on the console, I got:
----root:~>new_termios flag: 0x80001cb1, old_termios flag: 0x1cb1

The CRTSCTS flag is set back. But I didn't set it back, I just type "ENTER".
I guess, Is it a serial core bug?

-Aubrey

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-02-02  3:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 10:49 [BUG]: 2.6.19.2: Weird serial core issue Aubrey Li
2007-01-31 16:21 ` Alan
2007-02-01  2:33   ` Aubrey Li
2007-02-01  9:45     ` Russell King
2007-02-01 10:09       ` Aubrey Li
2007-02-01 11:16         ` Russell King
2007-02-01 17:54           ` Aubrey Li
2007-02-01 19:09             ` Russell King
2007-02-02  3:34             ` Christopher Curtis
     [not found]     ` <000201c745d9$4577fe20$2e01a8c0@acksys.local>
2007-02-01 10:38       ` Aubrey Li
2007-02-01 15:19         ` Paul Fulghum
2007-02-01 12:02     ` Alan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).