Skip to contentSkip to conversation

USB: serial: option: adding support for YUGA CLM920-NC5

PATCH In review SZ Lin (林上智) 2 participants 6 messages Dec 19, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 USB: serial: option: adding support for YUGA CLM920-NC5

This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver.

Interface layout:
0: QCDM/DIAG
1: ADB
2: MODEM
3: AT
4: RMNET

---
Changes from v1:
- Fix typo
- Remove QCDM/DIAG interface in blacklist

 drivers/usb/serial/option.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/usb/serial/option.c +9 -0
index 3b3513874cfd..8a50226379b0 100644
@@ -233,6 +233,8 @@ static void option_instat_callback(struct urb *urb);
 /* These Quectel products use Qualcomm's vendor ID */
 #define QUECTEL_PRODUCT_UC20			0x9003
 #define QUECTEL_PRODUCT_UC15			0x9090
+/* These Yuga products use Qualcomm's vendor ID */
+#define YUGA_PRODUCT_CLM920_NC5			0x9625
 
 #define QUECTEL_VENDOR_ID			0x2c7c
 /* These Quectel products use Quectel's vendor ID */
@@ -674,6 +676,10 @@ static const struct option_blacklist_info cinterion_rmnet2_blacklist = {
 	.reserved = BIT(4) | BIT(5),
 };
 
+static const struct option_blacklist_info yuga_clm920_nc5_blacklist = {
+	.reserved = BIT(1) | BIT(4),
+};
+
 static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
 	{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) },
@@ -1178,6 +1184,9 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC15)},
 	{ USB_DEVICE(QUALCOMM_VENDOR_ID, QUECTEL_PRODUCT_UC20),
 	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
+	/* Yuga products use Qualcomm vendor ID */
+	{ USB_DEVICE(QUALCOMM_VENDOR_ID, YUGA_PRODUCT_CLM920_NC5),
+	  .driver_info = (kernel_ulong_t)&yuga_clm920_nc5_blacklist },
 	/* Quectel products using Quectel vendor ID */
 	{ USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC21),
 	  .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
maintainer
#1 lore raw
Quoted 10 lines · SZ Lin (林上智)

This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver.

Interface layout:
0: QCDM/DIAG
1: ADB
2: MODEM
3: AT
4: RMNET

Quoted 6 lines

---
Changes from v1:
- Fix typo
- Remove QCDM/DIAG interface in blacklist

Thanks for the v2. Patch looks good now, but it seems your name cannot be represented in UTF-8 (or my setup is broken).

I see you have used the latin version "SF Lin" in the past so that should be fine. I was just asking to make sure "SF" wasn't an acronym or nickname.

Care to resend a v3 with your original From and Signed-off-by?

Thanks,
Johan
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#2 lore raw
Quoted 18 lines · Johan Hovold
Quoted 10 lines · SZ Lin (林上智)

This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver.

Interface layout:
0: QCDM/DIAG
1: ADB
2: MODEM
3: AT
4: RMNET

Quoted 6 lines

---
Changes from v1:
- Fix typo
- Remove QCDM/DIAG interface in blacklist

Quoted 6 lines

Thanks for the v2. Patch looks good now, but it seems your name cannot be represented in UTF-8 (or my setup is broken).

I see you have used the latin version "SF Lin" in the past so that should be fine. I was just asking to make sure "SF" wasn't an acronym or nickname.

Sorry, I meant "SZ Lin" of course.

Quoted 1 line

Care to resend a v3 with your original From and Signed-off-by?

Thanks,
Johan
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
In reply to Johan Hovold
Quoted 26 lines

-----Original Message-----
From: Johan Hovold [mailto:[email protected]] On Behalf Of Johan Hovold
Sent: Tuesday, December 19, 2017 6:12 PM
To: SZ Lin (林上智)
Cc: [email protected]; Taiyi TY Wu (吳泰毅); Johan Hovold; Greg Kroah-Hartman; [email protected]; [email protected]
Subject: Re: [PATCH v2] USB: serial: option: adding support for YUGA CLM920-NC5

Quoted 10 lines · SZ Lin (林上智)

This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver.

Interface layout:
0: QCDM/DIAG
1: ADB
2: MODEM
3: AT
4: RMNET

Quoted 6 lines

---
Changes from v1:
- Fix typo
- Remove QCDM/DIAG interface in blacklist

Quoted 8 lines

Thanks for the v2. Patch looks good now, but it seems your name cannot be represented in UTF-8 (or my setup is broken).

I see you have used the latin version "SF Lin" in the past so that should be fine. I was just asking to make sure "SF" wasn't an acronym or nickname.

Care to resend a v3 with your original From and Signed-off-by?

SZ Lin (林上智) is my legal name, but it causes garbled issue in some environment. Therefore, I usually use SZ Lin as my legal name in patch.

Quoted 2 lines

Thanks,
Johan

maintainer
#3 lore raw
In reply to Johan Hovold
Quoted 19 lines · Johan Hovold
Quoted 18 lines · Johan Hovold
Quoted 16 lines · SZ Lin (林上智)

This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver.

Interface layout:
0: QCDM/DIAG
1: ADB
2: MODEM
3: AT
4: RMNET

---
Changes from v1:
- Fix typo
- Remove QCDM/DIAG interface in blacklist

Quoted 10 lines
Quoted 6 lines

Thanks for the v2. Patch looks good now, but it seems your name cannot be represented in UTF-8 (or my setup is broken).

I see you have used the latin version "SF Lin" in the past so that should be fine. I was just asking to make sure "SF" wasn't an acronym or nickname.

Sorry, I meant "SZ Lin" of course.

Quoted 1 line

Care to resend a v3 with your original From and Signed-off-by?

Nevermind, it seems it's just my terminals that can't represent it. I'll apply the patch as is.

Sorry about the noise.

Johan
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 27 lines · Johan Hovold
Quoted 26 lines · Johan Hovold
Quoted 24 lines · SZ Lin (林上智)
Quoted 10 lines

This patch adds support for YUGA CLM920-NC5 PID 0x9625 USB modem to option driver.

Interface layout:
0: QCDM/DIAG
1: ADB
2: MODEM
3: AT
4: RMNET

Quoted 6 lines

---
Changes from v1:
- Fix typo
- Remove QCDM/DIAG interface in blacklist

Thanks for the v2. Patch looks good now, but it seems your name cannot be represented in UTF-8 (or my setup is broken).

I see you have used the latin version "SF Lin" in the past so that should be fine. I was just asking to make sure "SF" wasn't an acronym or nickname.

Quoted 6 lines
Quoted 3 lines

Sorry, I meant "SZ Lin" of course.

Quoted 1 line

Care to resend a v3 with your original From and Signed-off-by?

Nevermind, it seems it's just my terminals that can't represent it. I'll apply the patch as is.

Thank you and thanks to Bjorn.

Quoted 3 lines

Sorry about the noise.

Johan