LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* custom baud rates with serial core
@ 2007-08-03 23:59 Mike Frysinger
  2007-08-04 15:25 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2007-08-03 23:59 UTC (permalink / raw)
  To: Linux Kernel Mailing List

is there a method for setting custom baud rates that doesnt cause a
"deprecated" message from showing up ?  for example:
# setserial -a /dev/ttyBF0 divisor 9 spd_cust
setserial sets custom speed on ttyBF0. This is deprecated.

my reading of the serial core code is that the only way to specify a
baud rate that does not appear in the B* define list is by setting
your baud to B38400 and utilizing UPF_SPD_CUST.  this ends up in the
deprecated warning code though in uart_set_info().

if it's deprecated in favor of something nicer, that's fine, but i
cant find out what that "nicer" thing is ...
-mike

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

* Re: custom baud rates with serial core
  2007-08-03 23:59 custom baud rates with serial core Mike Frysinger
@ 2007-08-04 15:25 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2007-08-04 15:25 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: Linux Kernel Mailing List

On Fri, 3 Aug 2007 19:59:51 -0400
"Mike Frysinger" <vapier.adi@gmail.com> wrote:

> is there a method for setting custom baud rates that doesnt cause a
> "deprecated" message from showing up ?  for example:
> # setserial -a /dev/ttyBF0 divisor 9 spd_cust
> setserial sets custom speed on ttyBF0. This is deprecated.

If your platform is up to date then you can set arbitary speeds via the
TIOCGETS2/TIOCSETS2 ioctls. Not all platforms support this yet although
I'm working on getting the sane ones all upstream and sorted. Once that
is done glibc will be able to switch internally to TIOCGETS2/SETS2 for
the termios operations it provides and the world will be a far happier
place ...

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

end of thread, other threads:[~2007-08-04 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-03 23:59 custom baud rates with serial core Mike Frysinger
2007-08-04 15:25 ` Alan Cox

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