This is a note to let you know that I've just added the patch titled

    USB: cp210x: allow more baud rates above 1Mbaud

to the 3.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     usb-cp210x-allow-more-baud-rates-above-1mbaud.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From d1620ca9e7bb0030068c3b45b653defde8839dac Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Mon, 16 Jan 2012 00:36:53 +0100
Subject: USB: cp210x: allow more baud rates above 1Mbaud

From: Johan Hovold <[email protected]>

commit d1620ca9e7bb0030068c3b45b653defde8839dac upstream.

Allow more baud rates to be set in [1M,2M] baud.

Signed-off-by: Johan Hovold <[email protected]>
Cc: Preston Fick <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/usb/serial/cp210x.c |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -388,10 +388,10 @@ static unsigned int cp210x_quantise_baud
        else if (baud <= 491520)   baud = 460800;
        else if (baud <= 567138)   baud = 500000;
        else if (baud <= 670254)   baud = 576000;
-       else if (baud <= 1053257)  baud = 921600;
-       else if (baud <= 1474560)  baud = 1228800;
-       else if (baud <= 2457600)  baud = 1843200;
-       else                       baud = 3686400;
+       else if (baud < 1000000)
+               baud = 921600;
+       else if (baud > 2000000)
+               baud = 2000000;
        return baud;
 }
 
@@ -611,7 +611,8 @@ static void cp210x_change_speed(struct t
 
        baud = tty->termios->c_ospeed;
 
-       /* This maps the requested rate to a rate valid on cp2102 or cp2103.
+       /* This maps the requested rate to a rate valid on cp2102 or cp2103,
+        * or to an arbitrary rate in [1M,2M].
         *
         * NOTE: B0 is not implemented.
         */


Patches currently in stable-queue which might be from [email protected] are

queue-3.0/usb-cp210x-call-generic-open-last-in-open.patch
queue-3.0/usb-cp210x-fix-cp2104-baudrate-usage.patch
queue-3.0/usb-cp210x-fix-up-set_termios-variables.patch
queue-3.0/usb-cp210x-do-not-map-baud-rates-to-b0.patch
queue-3.0/usb-cp210x-allow-more-baud-rates-above-1mbaud.patch
queue-3.0/usb-cp210x-initialise-baud-rate-at-open.patch
queue-3.0/usb-cp210x-clean-up-refactor-and-document-speed-handling.patch
queue-3.0/usb-ftdi_sio-fix-tiocsserial-baud_base-handling.patch
queue-3.0/usb-ftdi_sio-fix-initial-baud-rate.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to