From: Greg Kroah-Hartman Date: Mon, 11 Jan 2021 07:35:23 +0000 (+0100) Subject: 4.4-stable patches X-Git-Tag: v4.4.251~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f28efaee9dec9ee8f48ec88f1a239ae68857bb1c;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: usb-cdc-acm-blacklist-another-ir-droid-device.patch usb-gadget-enable-super-speed-plus.patch --- diff --git a/queue-4.4/series b/queue-4.4/series index 02d3e27aaee..92af7bab254 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -13,3 +13,5 @@ net-sched-prevent-invalid-scell_log-shift-count.patch virtio_net-fix-recursive-call-to-cpus_read_lock.patch ethernet-ucc_geth-fix-use-after-free-in-ucc_geth_remove.patch video-hyperv_fb-fix-the-mmap-regression-for-v5.4.y-a.patch +usb-gadget-enable-super-speed-plus.patch +usb-cdc-acm-blacklist-another-ir-droid-device.patch diff --git a/queue-4.4/usb-cdc-acm-blacklist-another-ir-droid-device.patch b/queue-4.4/usb-cdc-acm-blacklist-another-ir-droid-device.patch new file mode 100644 index 00000000000..e4aced01242 --- /dev/null +++ b/queue-4.4/usb-cdc-acm-blacklist-another-ir-droid-device.patch @@ -0,0 +1,35 @@ +From 0ffc76539e6e8d28114f95ac25c167c37b5191b3 Mon Sep 17 00:00:00 2001 +From: Sean Young +Date: Sun, 27 Dec 2020 13:45:02 +0000 +Subject: USB: cdc-acm: blacklist another IR Droid device + +From: Sean Young + +commit 0ffc76539e6e8d28114f95ac25c167c37b5191b3 upstream. + +This device is supported by the IR Toy driver. + +Reported-by: Georgi Bakalski +Signed-off-by: Sean Young +Acked-by: Oliver Neukum +Cc: stable +Link: https://lore.kernel.org/r/20201227134502.4548-2-sean@mess.org +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/class/cdc-acm.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/drivers/usb/class/cdc-acm.c ++++ b/drivers/usb/class/cdc-acm.c +@@ -1894,6 +1894,10 @@ static const struct usb_device_id acm_id + { USB_DEVICE(0x04d8, 0x0083), /* Bootloader mode */ + .driver_info = IGNORE_DEVICE, + }, ++ ++ { USB_DEVICE(0x04d8, 0xf58b), ++ .driver_info = IGNORE_DEVICE, ++ }, + #endif + + /*Samsung phone in firmware update mode */ diff --git a/queue-4.4/usb-gadget-enable-super-speed-plus.patch b/queue-4.4/usb-gadget-enable-super-speed-plus.patch new file mode 100644 index 00000000000..fd615576dfc --- /dev/null +++ b/queue-4.4/usb-gadget-enable-super-speed-plus.patch @@ -0,0 +1,52 @@ +From e2459108b5a0604c4b472cae2b3cb8d3444c77fb Mon Sep 17 00:00:00 2001 +From: "taehyun.cho" +Date: Thu, 7 Jan 2021 00:46:25 +0900 +Subject: usb: gadget: enable super speed plus + +From: taehyun.cho + +commit e2459108b5a0604c4b472cae2b3cb8d3444c77fb upstream. + +Enable Super speed plus in configfs to support USB3.1 Gen2. +This ensures that when a USB gadget is plugged in, it is +enumerated as Gen 2 and connected at 10 Gbps if the host and +cable are capable of it. + +Many in-tree gadget functions (fs, midi, acm, ncm, mass_storage, +etc.) already have SuperSpeed Plus support. + +Tested: plugged gadget into Linux host and saw: +[284907.385986] usb 8-2: new SuperSpeedPlus Gen 2 USB device number 3 using xhci_hcd + +Tested-by: Lorenzo Colitti +Acked-by: Felipe Balbi +Signed-off-by: taehyun.cho +Signed-off-by: Lorenzo Colitti +Link: https://lore.kernel.org/r/20210106154625.2801030-1-lorenzo@google.com +Cc: stable +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/gadget/configfs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/drivers/usb/gadget/configfs.c ++++ b/drivers/usb/gadget/configfs.c +@@ -1507,7 +1507,7 @@ static const struct usb_gadget_driver co + .suspend = configfs_composite_suspend, + .resume = configfs_composite_resume, + +- .max_speed = USB_SPEED_SUPER, ++ .max_speed = USB_SPEED_SUPER_PLUS, + .driver = { + .owner = THIS_MODULE, + .name = "configfs-gadget", +@@ -1543,7 +1543,7 @@ static struct config_group *gadgets_make + gi->composite.unbind = configfs_do_nothing; + gi->composite.suspend = NULL; + gi->composite.resume = NULL; +- gi->composite.max_speed = USB_SPEED_SUPER; ++ gi->composite.max_speed = USB_SPEED_SUPER_PLUS; + + spin_lock_init(&gi->spinlock); + mutex_init(&gi->lock);