Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
option patch
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -164,6 +164,8 @@ static void option_instat_callback(struct urb *urb);
#define QUANTA_PRODUCT_GLX 0xEA04
#define QUANTA_PRODUCT_GKE 0xEA05
#define QUANTA_PRODUCT_GLE 0xEA06
+#define QUANTA_PRODUCT_YOTA_ROUTER_OLD 0xD00A
+#define QUANTA_PRODUCT_YOTA_ROUTER 0xD009
#define NOVATELWIRELESS_VENDOR_ID 0x1410
@@ -559,6 +561,15 @@ static const struct option_blacklist_info zte_mf626_blacklist = {
.reserved = BIT(4),
};
+static const struct option_blacklist_info quanta_yota_router_old_blacklist = {
+ .reserved = ~(BIT(0) | BIT(1)),
+};
+
+static const struct option_blacklist_info quanta_yota_router_blacklist = {
+ .reserved = ~(BIT(1) | BIT(2)),
+};
+
+
static const struct usb_device_id option_ids[] = {
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) },
@@ -590,6 +601,10 @@ static const struct usb_device_id option_ids[] = {
{ USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GLX) },
{ USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GKE) },
{ USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GLE) },
+ { USB_DEVICE_AND_INTERFACE_INFO(QUANTA_VENDOR_ID, QUANTA_PRODUCT_YOTA_ROUTER_OLD, 0xff, 0xff, 0xff),
+ .driver_info = (kernel_ulong_t)&quanta_yota_router_old_blacklist },
+ { USB_DEVICE_AND_INTERFACE_INFO(QUANTA_VENDOR_ID, QUANTA_PRODUCT_YOTA_ROUTER, 0xff, 0xff, 0xff),
+ .driver_info = (kernel_ulong_t)&quanta_yota_router_blacklist },
{ USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E600, 0xff, 0xff, 0xff) },
{ USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E220, 0xff, 0xff, 0xff) },
{ USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E220BIS, 0xff, 0xff, 0xff) },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.