]> git.baikalelectronics.ru Git - kernel.git/commit
USB: CP2101 Support AN205 baud rates
authorCraig Shelley <craig@microtron.org.uk>
Thu, 26 Feb 2009 22:19:22 +0000 (22:19 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:44 +0000 (16:20 -0700)
commit74c06c7651941a1a359dfe477dcbe64ce9be8c6c
tree2d5f13e77ac265aa98d510173aa70695184c6fb3
parent1691be4503a70f9c068e7c7f3758106d429393a9
USB: CP2101 Support AN205 baud rates

This patch adds support for the extended range of baud rates supported
by CP2102 and CP2103 devices described in SiLabs AN205.  An additional
function cp2101_quantise_baudrate rounds the baud rate as per AN205
Table 1.  A modification to the baud rate calculation removes a rounding
error, allowing the full range of baud rates to be used.

Signed-off-by: Craig Shelley <craig@microtron.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cp2101.c