]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 17:55:40 +0000 (10:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 17:55:40 +0000 (10:55 -0700)
added patches:
rt2x00-add-support-for-buffalo-wli-uc-gnm2-to-rt2800usb.patch
usb-ftdi_sio-add-vid-pid-for-kondo-serial-usb.patch
usb-serial-mos7840-fixup-mos7840_chars_in_buffer.patch

queue-3.0/rt2x00-add-support-for-buffalo-wli-uc-gnm2-to-rt2800usb.patch [new file with mode: 0644]
queue-3.0/series
queue-3.0/usb-ftdi_sio-add-vid-pid-for-kondo-serial-usb.patch [new file with mode: 0644]
queue-3.0/usb-serial-mos7840-fixup-mos7840_chars_in_buffer.patch [new file with mode: 0644]

diff --git a/queue-3.0/rt2x00-add-support-for-buffalo-wli-uc-gnm2-to-rt2800usb.patch b/queue-3.0/rt2x00-add-support-for-buffalo-wli-uc-gnm2-to-rt2800usb.patch
new file mode 100644 (file)
index 0000000..1df3221
--- /dev/null
@@ -0,0 +1,29 @@
+From a769f9577232afe2c754606a83aad85127e7052a Mon Sep 17 00:00:00 2001
+From: Jeongdo Son <sohn9086@gmail.com>
+Date: Fri, 15 Jun 2012 02:28:01 +0900
+Subject: rt2x00: Add support for BUFFALO WLI-UC-GNM2 to rt2800usb.
+
+From: Jeongdo Son <sohn9086@gmail.com>
+
+commit a769f9577232afe2c754606a83aad85127e7052a upstream.
+
+This is a RT3070 based device.
+
+Signed-off-by: Jeongdo Son <sohn9086@gmail.com>
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/rt2x00/rt2800usb.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/net/wireless/rt2x00/rt2800usb.c
++++ b/drivers/net/wireless/rt2x00/rt2800usb.c
+@@ -829,6 +829,7 @@ static struct usb_device_id rt2800usb_de
+       { USB_DEVICE(0x0411, 0x015d) },
+       { USB_DEVICE(0x0411, 0x016f) },
+       { USB_DEVICE(0x0411, 0x01a2) },
++      { USB_DEVICE(0x0411, 0x01ee) },
+       /* Corega */
+       { USB_DEVICE(0x07aa, 0x002f) },
+       { USB_DEVICE(0x07aa, 0x003c) },
index 41a6416cbfb2607bbde039c900039f1f0fb5625c..8095a7c50ef1381522137ed236011ec4cefe5966 100644 (file)
@@ -9,3 +9,6 @@ xhci-increase-reset-timeout-for-renesas-720201-host.patch
 xhci-switch-ppt-ports-to-ehci-on-shutdown.patch
 usb-support-the-new-interfaces-of-huawei-data-card-devices-in-option-driver.patch
 usb-option-add-zte-k5006-z.patch
+usb-ftdi_sio-add-vid-pid-for-kondo-serial-usb.patch
+usb-serial-mos7840-fixup-mos7840_chars_in_buffer.patch
+rt2x00-add-support-for-buffalo-wli-uc-gnm2-to-rt2800usb.patch
diff --git a/queue-3.0/usb-ftdi_sio-add-vid-pid-for-kondo-serial-usb.patch b/queue-3.0/usb-ftdi_sio-add-vid-pid-for-kondo-serial-usb.patch
new file mode 100644 (file)
index 0000000..abcad4c
--- /dev/null
@@ -0,0 +1,49 @@
+From 7724a1edbe463b06d4e7831a41149ba095b16c53 Mon Sep 17 00:00:00 2001
+From: Ozan Çağlayan <ozancag@gmail.com>
+Date: Fri, 10 Aug 2012 17:25:10 +0300
+Subject: USB: ftdi_sio: Add VID/PID for Kondo Serial USB
+
+From: Ozan Çağlayan <ozancag@gmail.com>
+
+commit 7724a1edbe463b06d4e7831a41149ba095b16c53 upstream.
+
+This adds VID/PID for Kondo Kagaku Co. Ltd. Serial USB Adapter
+interface:
+http://www.kondo-robot.com/EN/wp/?cat=28
+
+Tested by controlling an RCB3 board using libRCB3.
+
+Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/usb/serial/ftdi_sio.c     |    1 +
+ drivers/usb/serial/ftdi_sio_ids.h |    7 +++++++
+ 2 files changed, 8 insertions(+)
+
+--- a/drivers/usb/serial/ftdi_sio.c
++++ b/drivers/usb/serial/ftdi_sio.c
+@@ -809,6 +809,7 @@ static struct usb_device_id id_table_com
+       { USB_DEVICE(LARSENBRUSGAARD_VID, LB_ALTITRACK_PID) },
+       { USB_DEVICE(GN_OTOMETRICS_VID, AURICAL_USB_PID) },
+       { USB_DEVICE(PI_VID, PI_E861_PID) },
++      { USB_DEVICE(KONDO_VID, KONDO_USB_SERIAL_PID) },
+       { USB_DEVICE(BAYER_VID, BAYER_CONTOUR_CABLE_PID) },
+       { USB_DEVICE(FTDI_VID, MARVELL_OPENRD_PID),
+               .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
+--- a/drivers/usb/serial/ftdi_sio_ids.h
++++ b/drivers/usb/serial/ftdi_sio_ids.h
+@@ -795,6 +795,13 @@
+ #define PI_E861_PID         0x1008  /* E-861 piezo controller USB connection */
+ /*
++ * Kondo Kagaku Co.Ltd.
++ * http://www.kondo-robot.com/EN
++ */
++#define KONDO_VID             0x165c
++#define KONDO_USB_SERIAL_PID  0x0002
++
++/*
+  * Bayer Ascensia Contour blood glucose meter USB-converter cable.
+  * http://winglucofacts.com/cables/
+  */
diff --git a/queue-3.0/usb-serial-mos7840-fixup-mos7840_chars_in_buffer.patch b/queue-3.0/usb-serial-mos7840-fixup-mos7840_chars_in_buffer.patch
new file mode 100644 (file)
index 0000000..2bb3df4
--- /dev/null
@@ -0,0 +1,38 @@
+From 5c263b92f828af6a8cf54041db45ceae5af8f2ab Mon Sep 17 00:00:00 2001
+From: Mark Ferrell <mferrell@uplogix.com>
+Date: Tue, 24 Jul 2012 14:15:13 -0500
+Subject: usb: serial: mos7840: Fixup mos7840_chars_in_buffer()
+
+From: Mark Ferrell <mferrell@uplogix.com>
+
+commit 5c263b92f828af6a8cf54041db45ceae5af8f2ab upstream.
+
+ * Use the buffer content length as opposed to the total buffer size.  This can
+   be a real problem when using the mos7840 as a usb serial-console as all
+   kernel output is truncated during boot.
+
+Signed-off-by: Mark Ferrell <mferrell@uplogix.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/usb/serial/mos7840.c |    9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+--- a/drivers/usb/serial/mos7840.c
++++ b/drivers/usb/serial/mos7840.c
+@@ -1191,9 +1191,12 @@ static int mos7840_chars_in_buffer(struc
+       }
+       spin_lock_irqsave(&mos7840_port->pool_lock, flags);
+-      for (i = 0; i < NUM_URBS; ++i)
+-              if (mos7840_port->busy[i])
+-                      chars += URB_TRANSFER_BUFFER_SIZE;
++      for (i = 0; i < NUM_URBS; ++i) {
++              if (mos7840_port->busy[i]) {
++                      struct urb *urb = mos7840_port->write_urb_pool[i];
++                      chars += urb->transfer_buffer_length;
++              }
++      }
+       spin_unlock_irqrestore(&mos7840_port->pool_lock, flags);
+       dbg("%s - returns %d", __func__, chars);
+       return chars;