]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cypress_m8: Limit baud rate to <=4800 for USB low speed devices
authorMike Isely <isely@pobox.com>
Mon, 11 Feb 2008 02:23:32 +0000 (20:23 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:38 +0000 (21:16 -0700)
commitfbd1fd5a753c9bf7b13805705827941e9728452d
tree75c51452bd60fcc38edda00cd54e25976e7b3f5f
parent1f1ff28afe2eead8326ac720d6d3b1fd9950b6c5
USB: cypress_m8: Limit baud rate to <=4800 for USB low speed devices

The cypress app note for the M8 states that for the USB low speed
version of the part, throughput is effectively limited to 800
bytes/sec.  So if we were to try a faster baud rate in such cases then
we risk overrun errors on receive.  Best to just identify this case
and limit the rate to 4800 baud or less (by ignoring any request to
set a faster rate).  The old baud rate setting code was somewhat
fragile; this change also hopefully makes it easier in the future to
better checking / limiting.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cypress_m8.c