Mailinglist Archive: opensuse-bugs (4760 mails)

< Previous Next >
[Bug 598085] Can't set baud rate to 128000 on /dev/ttyUSB0 cp210x device
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 22 Apr 2010 13:09:06 +0000
  • Message-id: <20100422130906.122F3CC69A@xxxxxxxxxxxxxxxxxxxxxx>
http://bugzilla.novell.com/show_bug.cgi?id=598085

http://bugzilla.novell.com/show_bug.cgi?id=598085#c10


--- Comment #10 from Steve Ricketts <velocedge@xxxxxxxxxxx> 2010-04-22 13:09:05
UTC ---
I think this might be the problem.

As you can see in the cp210x sources
(http://lxr.free-electrons.com/source/drivers/usb/serial/cp210x.c ), in line
610, the baudrate is set only if it needs to be updated and it is not null. But
baud value has been updated by the quantization function feed by the
tty_get_baud_rate function (line 607).

This function takes his values from a "standard baudrate table":
http://lxr.free-electrons.com/source/drivers/char/tty_ioctl.c#L430 (function
tty_termios_baud_rate
http://lxr.free-electrons.com/source/drivers/char/tty_ioctl.c#L243) and the
table is here:
http://lxr.free-electrons.com/source/drivers/char/tty_ioctl.c#L201 . As you can
see, B128000 is not defined, so this means that it is not supported by the
system.

This is why there is no debug message when you pass 1280000 as a value.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References