On Thu, 2007-06-07 at 23:54 +0100, Alan Cox wrote: > If it doesn't only involve editing the header files for this case (and > maybe needing a define to indicate old==new) then the tty layer wants > fixing to sort that out. Its on my todo list. It works fine. The only problem is that if I set a _standard_ baud rate with BOTHER and then read it back with something that doesn't grok BOTHER, I get it back just as I set it. [root@pegasos ~]# ./testit1 Get: c_flag 0x1f0b1f(31,31), ispeed 38400, ospeed 38400 [root@pegasos ~]# stty speed 0 baud; line = 0; It might be better if it was returning B38400, rather than BOTHER. Should we be using tty_termios_encode_baud_rate() for TCGETS()? -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [PATCH] ARM/ARM26: Enable arbitary speed tty ioctls and split input/output speed
- From: Alan Cox <[email protected]>
- Re: [PATCH] $ARCH: Enable arbitary speed tty ioctls and split input/output speed
- From: David Woodhouse <[email protected]>
- Re: [PATCH] $ARCH: Enable arbitary speed tty ioctls and split input/output speed
- From: Alan Cox <[email protected]>
- Re: [PATCH] $ARCH: Enable arbitary speed tty ioctls and split input/output speed
- From: David Woodhouse <[email protected]>
- Re: [PATCH] $ARCH: Enable arbitary speed tty ioctls and split input/output speed
- From: Alan Cox <[email protected]>
- [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: David Woodhouse <[email protected]>
- Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: Alan Cox <[email protected]>
- Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: David Woodhouse <[email protected]>
- Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: Alan Cox <[email protected]>
- Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: David Woodhouse <[email protected]>
- Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: Alan Cox <[email protected]>
- Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: David Woodhouse <[email protected]>
- Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- From: Alan Cox <[email protected]>
- [PATCH] ARM/ARM26: Enable arbitary speed tty ioctls and split input/output speed
- Prev by Date: Re: [PATCH] Fix interchanged parameters to release_{evntsel,perfctr}_nmi
- Next by Date: Re: JIT emulator needs
- Previous by thread: Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- Next by thread: Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used
- Index(es):