From: Greg Kroah-Hartman Date: Fri, 1 Nov 2013 21:41:40 +0000 (-0700) Subject: 3.11-stable patches X-Git-Tag: v3.4.68~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7bfc31f3612be8a56631263d5f7b7190a43ce6ae;p=thirdparty%2Fkernel%2Fstable-queue.git 3.11-stable patches added patches: serial-vt8500-add-missing-braces.patch usb-serial-option-add-support-for-inovia-sew858-device.patch usb-serial-option-blacklist-olivetti-olicard200.patch usb-serial-ti_usb_3410_5052-add-abbott-strip-port-id-to-combined-table-as-well.patch --- diff --git a/queue-3.11/serial-vt8500-add-missing-braces.patch b/queue-3.11/serial-vt8500-add-missing-braces.patch new file mode 100644 index 00000000000..5e4aa218f42 --- /dev/null +++ b/queue-3.11/serial-vt8500-add-missing-braces.patch @@ -0,0 +1,42 @@ +From d969de8d83401683420638c8107dcfedb2146f37 Mon Sep 17 00:00:00 2001 +From: Roel Kluin +Date: Mon, 14 Oct 2013 23:21:15 +0200 +Subject: serial: vt8500: add missing braces + +From: Roel Kluin + +commit d969de8d83401683420638c8107dcfedb2146f37 upstream. + +Due to missing braces on an if statement, in presence of a device_node a +port was always assigned -1, regardless of any alias entries in the +device tree. Conversely, if device_node was NULL, an unitialized port +ended up being used. + +This patch adds the missing braces, fixing the issues. + +Signed-off-by: Roel Kluin +Acked-by: Tony Prisk +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/tty/serial/vt8500_serial.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +--- a/drivers/tty/serial/vt8500_serial.c ++++ b/drivers/tty/serial/vt8500_serial.c +@@ -559,12 +559,13 @@ static int vt8500_serial_probe(struct pl + if (!mmres || !irqres) + return -ENODEV; + +- if (np) ++ if (np) { + port = of_alias_get_id(np, "serial"); + if (port >= VT8500_MAX_PORTS) + port = -1; +- else ++ } else { + port = -1; ++ } + + if (port < 0) { + /* calculate the port id */ diff --git a/queue-3.11/series b/queue-3.11/series index ac7ad98ad30..e3c6acfab02 100644 --- a/queue-3.11/series +++ b/queue-3.11/series @@ -61,3 +61,7 @@ w1-call-request_module-with-w1-master-mutex-unlocked.patch wireless-radiotap-fix-parsing-buffer-overrun.patch wireless-cw1200-acquire-hwbus-lock-around-cw1200_irq_handler-call.patch +serial-vt8500-add-missing-braces.patch +usb-serial-ti_usb_3410_5052-add-abbott-strip-port-id-to-combined-table-as-well.patch +usb-serial-option-add-support-for-inovia-sew858-device.patch +usb-serial-option-blacklist-olivetti-olicard200.patch diff --git a/queue-3.11/usb-serial-option-add-support-for-inovia-sew858-device.patch b/queue-3.11/usb-serial-option-add-support-for-inovia-sew858-device.patch new file mode 100644 index 00000000000..ffed326bd12 --- /dev/null +++ b/queue-3.11/usb-serial-option-add-support-for-inovia-sew858-device.patch @@ -0,0 +1,40 @@ +From f4c19b8e165cff1a6607c21f8809441d61cab7ec Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Sat, 5 Oct 2013 18:14:18 -0700 +Subject: USB: serial: option: add support for Inovia SEW858 device + +From: Greg Kroah-Hartman + +commit f4c19b8e165cff1a6607c21f8809441d61cab7ec upstream. + +This patch adds the device id for the Inovia SEW858 device to the option driver. + +Reported-by: Pavel Parkhomenko +Tested-by: Pavel Parkhomenko +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/serial/option.c | 5 +++++ + 1 file changed, 5 insertions(+) + +--- a/drivers/usb/serial/option.c ++++ b/drivers/usb/serial/option.c +@@ -451,6 +451,10 @@ static void option_instat_callback(struc + #define CHANGHONG_VENDOR_ID 0x2077 + #define CHANGHONG_PRODUCT_CH690 0x7001 + ++/* Inovia */ ++#define INOVIA_VENDOR_ID 0x20a6 ++#define INOVIA_SEW858 0x1105 ++ + /* some devices interfaces need special handling due to a number of reasons */ + enum option_blacklist_reason { + OPTION_BLACKLIST_NONE = 0, +@@ -1345,6 +1349,7 @@ static const struct usb_device_id option + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x00, 0x00) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ + { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ ++ { USB_DEVICE(INOVIA_VENDOR_ID, INOVIA_SEW858) }, + { } /* Terminating entry */ + }; + MODULE_DEVICE_TABLE(usb, option_ids); diff --git a/queue-3.11/usb-serial-option-blacklist-olivetti-olicard200.patch b/queue-3.11/usb-serial-option-blacklist-olivetti-olicard200.patch new file mode 100644 index 00000000000..8ee4f37d00e --- /dev/null +++ b/queue-3.11/usb-serial-option-blacklist-olivetti-olicard200.patch @@ -0,0 +1,34 @@ +From fd8573f5828873343903215f203f14dc82de397c Mon Sep 17 00:00:00 2001 +From: Enrico Mioso +Date: Tue, 15 Oct 2013 15:06:47 +0200 +Subject: usb: serial: option: blacklist Olivetti Olicard200 + +From: Enrico Mioso + +commit fd8573f5828873343903215f203f14dc82de397c upstream. + +Interface 6 of this device speaks QMI as per tests done by us. +Credits go to Antonella for providing the hardware. + +Signed-off-by: Enrico Mioso +Signed-off-by: Antonella Pellizzari +Tested-by: Dan Williams +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/serial/option.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- a/drivers/usb/serial/option.c ++++ b/drivers/usb/serial/option.c +@@ -1261,7 +1261,9 @@ static const struct usb_device_id option + + { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) }, + { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD145) }, +- { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD200) }, ++ { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD200), ++ .driver_info = (kernel_ulong_t)&net_intf6_blacklist ++ }, + { USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */ + { USB_DEVICE_AND_INTERFACE_INFO(SAMSUNG_VENDOR_ID, SAMSUNG_PRODUCT_GT_B3730, USB_CLASS_CDC_DATA, 0x00, 0x00) }, /* Samsung GT-B3730 LTE USB modem.*/ + { USB_DEVICE(YUGA_VENDOR_ID, YUGA_PRODUCT_CEM600) }, diff --git a/queue-3.11/usb-serial-ti_usb_3410_5052-add-abbott-strip-port-id-to-combined-table-as-well.patch b/queue-3.11/usb-serial-ti_usb_3410_5052-add-abbott-strip-port-id-to-combined-table-as-well.patch new file mode 100644 index 00000000000..a3b25428837 --- /dev/null +++ b/queue-3.11/usb-serial-ti_usb_3410_5052-add-abbott-strip-port-id-to-combined-table-as-well.patch @@ -0,0 +1,29 @@ +From c9d09dc7ad106492c17c587b6eeb99fe3f43e522 Mon Sep 17 00:00:00 2001 +From: Diego Elio Pettenò +Date: Tue, 8 Oct 2013 20:03:37 +0100 +Subject: USB: serial: ti_usb_3410_5052: add Abbott strip port ID to combined table as well. + +From: Diego Elio Pettenò + +commit c9d09dc7ad106492c17c587b6eeb99fe3f43e522 upstream. + +Without this change, the USB cable for Freestyle Option and compatible +glucometers will not be detected by the driver. + +Signed-off-by: Diego Elio Pettenò +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/serial/ti_usb_3410_5052.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/usb/serial/ti_usb_3410_5052.c ++++ b/drivers/usb/serial/ti_usb_3410_5052.c +@@ -203,6 +203,7 @@ static struct usb_device_id ti_id_table_ + { USB_DEVICE(IBM_VENDOR_ID, IBM_454B_PRODUCT_ID) }, + { USB_DEVICE(IBM_VENDOR_ID, IBM_454C_PRODUCT_ID) }, + { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_PRODUCT_ID) }, ++ { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_STRIP_PORT_ID) }, + { USB_DEVICE(TI_VENDOR_ID, FRI2_PRODUCT_ID) }, + { } + };