This is a note to let you know that I've just added the patch titled
USB: cp210x: call generic open last in open
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-call-generic-open-last-in-open.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 55b2afbb92ad92e9f6b0aa4354eb1c94589280c3 Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Mon, 16 Jan 2012 00:36:48 +0100
Subject: USB: cp210x: call generic open last in open
From: Johan Hovold <[email protected]>
commit 55b2afbb92ad92e9f6b0aa4354eb1c94589280c3 upstream.
Make sure port is fully initialised before calling generic open.
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/usb/serial/cp210x.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -393,8 +393,6 @@ static unsigned int cp210x_quantise_baud
static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port)
{
- int result;
-
dbg("%s - port %d", __func__, port->number);
if (cp210x_set_config_single(port, CP210X_IFC_ENABLE, UART_ENABLE)) {
@@ -403,13 +401,10 @@ static int cp210x_open(struct tty_struct
return -EPROTO;
}
- result = usb_serial_generic_open(tty, port);
- if (result)
- return result;
-
/* Configure the termios structure */
cp210x_get_termios(tty, port);
- return 0;
+
+ return usb_serial_generic_open(tty, port);
}
static void cp210x_close(struct usb_serial_port *port)
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