public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: option: add Quectel BG96 2c7c:0296
@ 2017-11-20 18:29 Sebastian Sjoholm
  2017-11-27  9:59 ` Johan Hovold
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Sjoholm @ 2017-11-20 18:29 UTC (permalink / raw)
  To: johan; +Cc: gregkh, linux-usb, linux-kernel, Sebastian Sjoholm

Quectel BG96 is an Qualcomm MDM9206 based IoT modem, supporting both 
CAT-M and NB-IoT. Tested hardware is BG96 mounted on Quectel 
development board (EVB). The USB id is added to option.c to allow 
DIAG,GPS,AT and modem communication with the BG96.

Signed-off-by: Sebastian Sjoholm <ssjoholm@mac.com>

---
 drivers/usb/serial/option.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index aaa7d901a06d..3b3513874cfd 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -238,6 +238,7 @@ static void option_instat_callback(struct urb *urb);
 /* These Quectel products use Quectel's vendor ID */
 #define QUECTEL_PRODUCT_EC21			0x0121
 #define QUECTEL_PRODUCT_EC25			0x0125
+#define QUECTEL_PRODUCT_BG96			0x0296
 
 #define CMOTECH_VENDOR_ID			0x16d8
 #define CMOTECH_PRODUCT_6001			0x6001
@@ -1182,6 +1183,8 @@ static const struct usb_device_id option_ids[] = {
 	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
 	{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC25),
 	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
+	{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96),
+	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
 	{ USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) },
 	{ USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) },
 	{ USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6003),
-- 
2.11.0 (Apple Git-81)

^ permalink raw reply related	[flat|nested] 6+ messages in thread
[parent not found: <20171119194028.39679-1-ssjoholm@mac.com>]
* [PATCH] USB: option: add Quectel BG96 2c7c:0296
@ 2017-11-20  4:19 ssjoholm
  0 siblings, 0 replies; 6+ messages in thread
From: ssjoholm @ 2017-11-20  4:19 UTC (permalink / raw)
  To: johan; +Cc: gregkh, linux-usb, linux-kernel, ssjoholm

From: ssjoholm <ssjoholm@mac.com>

Signed-off-by: ssjoholm <ssjoholm@mac.com>

Quectel BG96 is an Qualcomm MDM9206 based IoT modem, supporting both CAT-M and NB-IoT. Tested hardware is BG96 mounted on Quectel development board (EVB). The USB id is added to option.c to allow DIAG,GPS,AT and modem communication with the BG96.
---
 drivers/usb/serial/option.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index aaa7d901a06d..3b3513874cfd 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -238,6 +238,7 @@ static void option_instat_callback(struct urb *urb);
 /* These Quectel products use Quectel's vendor ID */
 #define QUECTEL_PRODUCT_EC21			0x0121
 #define QUECTEL_PRODUCT_EC25			0x0125
+#define QUECTEL_PRODUCT_BG96			0x0296
 
 #define CMOTECH_VENDOR_ID			0x16d8
 #define CMOTECH_PRODUCT_6001			0x6001
@@ -1182,6 +1183,8 @@ static const struct usb_device_id option_ids[] = {
 	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
 	{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC25),
 	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
+	{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96),
+	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
 	{ USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) },
 	{ USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) },
 	{ USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6003),
-- 
2.11.0 (Apple Git-81)

^ permalink raw reply related	[flat|nested] 6+ messages in thread
[parent not found: <20171119172801.39103-1-ssjoholm@mac.com>]

end of thread, other threads:[~2017-11-27 10:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-20 18:29 [PATCH] USB: option: add Quectel BG96 2c7c:0296 Sebastian Sjoholm
2017-11-27  9:59 ` Johan Hovold
     [not found] <20171119194028.39679-1-ssjoholm@mac.com>
2017-11-20  7:05 ` Greg KH
2017-11-20 17:34   ` Sebastian Sjoholm
  -- strict thread matches above, loose matches on Subject: below --
2017-11-20  4:19 ssjoholm
     [not found] <20171119172801.39103-1-ssjoholm@mac.com>
2017-11-19 17:52 ` Sebastian Sjoholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox