From: Greg Kroah-Hartman Date: Wed, 25 Apr 2018 10:31:00 +0000 (+0200) Subject: 4.9-stable patches X-Git-Tag: v4.16.5~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18c08163439f0605fe39728575afd389f85aaf14;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: r8152-add-linksys-usb3gigv1-id.patch --- diff --git a/queue-4.9/r8152-add-linksys-usb3gigv1-id.patch b/queue-4.9/r8152-add-linksys-usb3gigv1-id.patch new file mode 100644 index 00000000000..2e5afe69782 --- /dev/null +++ b/queue-4.9/r8152-add-linksys-usb3gigv1-id.patch @@ -0,0 +1,68 @@ +From 90841047a01b452cc8c3f9b990698b264143334a Mon Sep 17 00:00:00 2001 +From: Grant Grundler +Date: Thu, 28 Sep 2017 11:35:00 -0700 +Subject: r8152: add Linksys USB3GIGV1 id + +From: Grant Grundler + +commit 90841047a01b452cc8c3f9b990698b264143334a upstream. + +This linksys dongle by default comes up in cdc_ether mode. +This patch allows r8152 to claim the device: + Bus 002 Device 002: ID 13b1:0041 Linksys + +Signed-off-by: Grant Grundler +Reviewed-by: Douglas Anderson +Signed-off-by: David S. Miller +[krzk: Rebase on v4.4] +Signed-off-by: Krzysztof Kozlowski +Signed-off-by: Greg Kroah-Hartman +--- + drivers/net/usb/cdc_ether.c | 10 ++++++++++ + drivers/net/usb/r8152.c | 2 ++ + 2 files changed, 12 insertions(+) + +--- a/drivers/net/usb/cdc_ether.c ++++ b/drivers/net/usb/cdc_ether.c +@@ -530,6 +530,7 @@ static const struct driver_info wwan_inf + #define REALTEK_VENDOR_ID 0x0bda + #define SAMSUNG_VENDOR_ID 0x04e8 + #define LENOVO_VENDOR_ID 0x17ef ++#define LINKSYS_VENDOR_ID 0x13b1 + #define NVIDIA_VENDOR_ID 0x0955 + #define HP_VENDOR_ID 0x03f0 + +@@ -719,6 +720,15 @@ static const struct usb_device_id produc + .driver_info = 0, + }, + ++#if IS_ENABLED(CONFIG_USB_RTL8152) ++/* Linksys USB3GIGV1 Ethernet Adapter */ ++{ ++ USB_DEVICE_AND_INTERFACE_INFO(LINKSYS_VENDOR_ID, 0x0041, USB_CLASS_COMM, ++ USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE), ++ .driver_info = 0, ++}, ++#endif ++ + /* Lenovo Thinkpad USB 3.0 Ethernet Adapters (based on Realtek RTL8153) */ + { + USB_DEVICE_AND_INTERFACE_INFO(LENOVO_VENDOR_ID, 0x7205, USB_CLASS_COMM, +--- a/drivers/net/usb/r8152.c ++++ b/drivers/net/usb/r8152.c +@@ -519,6 +519,7 @@ enum rtl8152_flags { + #define VENDOR_ID_REALTEK 0x0bda + #define VENDOR_ID_SAMSUNG 0x04e8 + #define VENDOR_ID_LENOVO 0x17ef ++#define VENDOR_ID_LINKSYS 0x13b1 + #define VENDOR_ID_NVIDIA 0x0955 + + #define MCU_TYPE_PLA 0x0100 +@@ -4506,6 +4507,7 @@ static struct usb_device_id rtl8152_tabl + {REALTEK_USB_DEVICE(VENDOR_ID_SAMSUNG, 0xa101)}, + {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7205)}, + {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x304f)}, ++ {REALTEK_USB_DEVICE(VENDOR_ID_LINKSYS, 0x0041)}, + {REALTEK_USB_DEVICE(VENDOR_ID_NVIDIA, 0x09ff)}, + {} + }; diff --git a/queue-4.9/series b/queue-4.9/series index 9b7661468c1..46d4795b62b 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -15,3 +15,4 @@ perf-return-proper-values-for-user-stack-errors.patch rdma-mlx5-fix-null-dereference-while-accessing-xrc_tgt-qps.patch drm-i915-bxt-glk-increase-pcode-timeouts-during-cdclk-freq-changing.patch mac80211_hwsim-fix-use-after-free-bug-in-hwsim_exit_net.patch +r8152-add-linksys-usb3gigv1-id.patch