From patchwork Fri Nov 22 09:06:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mank Wang X-Patchwork-Id: 845173 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2090.outbound.protection.outlook.com [40.107.92.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B05431386D7 for ; Fri, 22 Nov 2024 09:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.90 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732266366; cv=fail; b=mVf1soaeRd1+CleCIURsi8jEIVx4lp1Fr/wMXUVS4HtAfbNqOOIN9yas/x5c7V9cwGQIS5VgfWkApJB+kChDOcIaWN1JYOnuBPNa+aXslL0QrJZrMZd0Swbtz+FMDbNQIa067M+FD6f19JkKK6y7c3m4Ekr8/KuX466F+vZYObs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732266366; c=relaxed/simple; bh=yvhWcIn80v8S4VGUBZAXesPfHarSTQd3/irW7QhN0oE=; h=Content-Type:From:To:CC:Subject:Date:Message-ID:MIME-Version; b=D+ShNQl4jua0tZ8xHGsetaqLaKddaGoaaRXNgOqFZqM/RnMpX8EmWt+cIgN4Dy+QrAIsJtY5B4EfpfiiYtoh9SslscihvCZBRTIGfGxgQf62u+KHa65puDK46ToC4cThQMrJbxtZEi8casyC/DUO/whr3ZsC5i7KcDbOqr14/Uc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netprisma.com; spf=pass smtp.mailfrom=netprisma.com; arc=fail smtp.client-ip=40.107.92.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netprisma.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netprisma.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=niUvotOYuncW0EEwsvRsz2GJirSYE7Wa0bQ2HBnQIEX6FBIk0NAAUk/ZGZ/StktRrBYWXVNfdK0ME3L2G32f20f2QvZ+Hj4fMDKlNENVEeqG5kP8INsvN06hL7+Oua9DDMRR30LXq0DDFx/6VRvm6kgEfEYX4whRO6uQ0K+4LgWphE8nzlGYGPyJPQRhErIIYjVOrMEptXMsr9mdDnN+RqUJ7vz4nEAp0xCDZtjSvBEPaOOxe6bMggqAHZFP8D1viMVdYAbSiqDz/JMulD1TR1hz0rwN+IW2IPJoRd1AUnog0z5dJJXkQulea8wN+qLVQ2+NOqLaFMQldICIOS1Nfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s3o8kPJPOXhTKRzaxt/ajyNLGjdpv7qkoK3iPevc+PU=; b=Yu1QvIg100HOzexsRs/3CEuTSYJ35MAilEOa2NZSU29sVFCCuaFEXFZ6FkFHsj8jcS/cs3bWAzFG0jTimoE6CBEwwQWyzvd0VqsxkyYdgjMFLz6z810qgmweY5KnMp86JK97vODHM4AcBBdo5bTFmOMTh0m4h6DQBjCTFdhfJ5FohbzsziNIM4fGRBhstUPFoeyDnpvu06YHrIC8lQIzPNiTtHxyIvg5ZxOFQ5D5BEvECXrGnOJY3Di74atRcC+BpuEp0hEhSSsNuOIP1noAtz77ULAimGQnDMBxHKhzqlSpIKucTX+gZTzZth2/zYGKuaZOLpD693myVRS1+MDc+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netprisma.com; dmarc=pass action=none header.from=netprisma.com; dkim=pass header.d=netprisma.com; arc=none Received: from PH7PR22MB3038.namprd22.prod.outlook.com (2603:10b6:510:134::12) by SJ2PR22MB5286.namprd22.prod.outlook.com (2603:10b6:a03:587::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.27; Fri, 22 Nov 2024 09:06:00 +0000 Received: from PH7PR22MB3038.namprd22.prod.outlook.com ([fe80::5bbd:4bf9:3952:a57b]) by PH7PR22MB3038.namprd22.prod.outlook.com ([fe80::5bbd:4bf9:3952:a57b%6]) with mapi id 15.20.8182.013; Fri, 22 Nov 2024 09:06:00 +0000 From: Mank Wang To: "johan@kernel.org" CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" Subject: [PATCH] USB: serial: option: add Netprisma LCUK54 modules for WWAN Ready Thread-Topic: [PATCH] USB: serial: option: add Netprisma LCUK54 modules for WWAN Ready Thread-Index: Ads8vbwvT+kqn9zNR9i4cqemXRX7Hw== Date: Fri, 22 Nov 2024 09:06:00 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=netprisma.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR22MB3038:EE_|SJ2PR22MB5286:EE_ x-ms-office365-filtering-correlation-id: 540bc9de-8cf5-4a61-43ed-08dd0ad4e265 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: fFq6SXGYrlP8TIAElralS6YoIq7qBjwordveW06UqvPWFi+mgfqxJll+zaN9iMfbGdyBnW6FK9D+99RRrKcrELST/TJalss0fd9cym4QbEyWT9M+fIsZ63BT8Es8qq8r+6bjxNXH+AUlh9K+wFRf0g7IRh+IymZJeMv7HbysfHfOkzKVj2znC/RGcKmd+PcSYXOUfRmGKPbv8ZEata0D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xtKsfEGxp7b6UbTZ1o8Tf93P6N9jEYvkMJhp6U65gsgKP6jKMVZ8bpEBxL9ASq1q6sylyrA/ZsB2ZTTDRUewkW8cbKc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR22MB3038.namprd22.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: SLLaY1VF5Yu/GVPfY4g/XJrsmKKIUsofWNX2CJl/x3GfQAZ6NeGmNy4IDDx4jurjfnvTW3TM7Sir7IanjLpXQdeSXzw/2T3tYWOAMZNAHqdYCj9NQedbGf/1nsNq3va7Z2DNXTzeYcMDlbG25N2TubTH2hE3R9uSfy6zlM2x0IhESFI60dzQaRW2TlfnjQloOHt3JTdhhmxH3TPmPB5/WMIxZ8kHXxkpmqQtFHC1PDeF0k5xu5MiWiUmRC3W2599sy5sM9VhSHY+eT7ANTSsopO5OzlzXEF9BgRnhjHpI8XRS8QgVlECxb9RoEzIv/ZnpbJF+RVsYSt124ZU5Dnrr7pTQkzB9QPfNzd4CGt0w9l6k5qn/EZlog/qxFUDmRrqFWyV4Oe7nW2X4k3LcB8/eEK4Gl8lCpn8O0Oe4mWrkFjtGVs4rvLvcKdpIqbgQiqDzqngJXCqJ9o8el2T3PitbtRv/n9agbDI/dk+0Ti0BbsYrlb1S6g6CmwUSL5eUFmL7MMm/i/M6YzgJCsE4sOHFnALnozjNVhhJKXcG+CJU/zs6f2fo07eSMknjgFncnw78iJFSqOxr8k6Clx5RqtAtJcTrSJzcGPuq65MlTX5sUyfFI1CJY70peDvxtitqKvVyuKwmi/jqoiRTbYLlxFg1RM3ZvVH+LP4HKeUa8FfJMpxFerYV18TsymGZnHMaWaK2PJV78XptqKzHm0FzEuWrBlGgWXKCiVH++jyX1rKY1xgYt/ytGijs5ACedP16vbgT2UyhUBgQ65XFQOWKlPbX9x8XBIVjgn1az6IYAazFbdVLAC/IBc2DVF7804E0B9qD1gb3H4JWki07myZ/0w4Kw9fHqa4su3D1qD8rF4bypff4N3AGZReS6DKLvn8Cnt3Bla2YFP4Mu1MqqailnYUcxaoa/LeWtlfUuQUvQagdf39exeaCq8QLEszCK60yLMBi0mNFNyFM+rBjvMdrbxuE2vwU8j2ls+ztV/eyEPm8whs5oAT4VEPWa0mLusbmQ3HyPLc51FhATz6rIWezRY1Es+iJdqkka9sV5bZcuDS9bJG4Tp2E9mCLXIM3EjKzZziahJD1HPUn05yVRUbmBl2XqAB+xp6xTuMrX218YGcwx/83xdNCbs/Z9hsy1VT+ZKrcoblpyXG+EXOc+LdwCY1FIqDsFtPrpMEhObJsCvU9J6s4xShmM0IsKn9UMhg7DP4ei2PgUvW8K68oFRQxXRJxZiPRQ4eR6yk2/Lew2SpXGxZYg9umtPj+2PrHnwNSzttQz1+3hE+8ANDKTw5Aimh8wQZCj+ym0qjyD87RKjvnmJ57cTTJhiodpBzbLxXxJT2iyWP2fwtGohTIrKBpkWsU8Q5rCJepQwlmFe3SAjzBbcVcr9BVziWHmN4tLplBTe9ZZBz18ns59N8SziTNq0P6no2fFZNLUPmsCheO84FUUXjIi7wcn1w8Lv4/5jZCnaiD4bwVYZd9LCERwZ35msV9fDrwM7ZVHuOjI8Ww6uoMnTYviqHxsycOyzCVuWITZPkSTD3ni7WnXSHuZDgwKR2Ky0WAO0J3e86x1cO/p5/tLSQ+8NFB48VGapuW87lC6OD Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: netprisma.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR22MB3038.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 540bc9de-8cf5-4a61-43ed-08dd0ad4e265 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2024 09:06:00.3673 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fdc90941-0026-4225-aaa0-15fff5e87036 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dL8LPhjBLEicjXWWAzrtamczw4gDzxZYOvy2uLb/fuVMTOp/G0jEOF9/oRvsfoddQSdQDnyx1ADzHnaqOGiA5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR22MB5286 LCUK54-WRD's pid/vid 0x3731/0x010A 0x3731/0x010C LCUK54-WWD's pid/vid 0x3731/0x010B 0x3731/0x010D Above products use the exact same interface layout and option driver: MBIM + GNSS + DIAG + NMEA + AT + QDSS + DPL T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=3731 ProdID=0101 Rev= 5.04 S: Manufacturer=NetPrisma S: Product=LCUK54-WRD S: SerialNumber=feeba631 C:* #Ifs= 8 Cfg#= 1 Atr=a0 MxPwr=500mA A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=0f(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=40 Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=70 Driver=(none) E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 7 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=80 Driver=(none) E: Ad=8f(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms Signed-off-by: Mank Wang --- drivers/usb/serial/option.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 9ba5584061c8..8acaa7d89493 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -2375,6 +2375,18 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x0116, 0xff, 0xff, 0x30) }, /* NetPrisma LCUK54-WWD for Golbal EDU */ { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x0116, 0xff, 0x00, 0x40) }, { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x0116, 0xff, 0xff, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010A, 0xff, 0xff, 0x30) }, /* NetPrisma LCUK54-WRD for WWAN Ready */ + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010A, 0xff, 0x00, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010A, 0xff, 0xff, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010B, 0xff, 0xff, 0x30) }, /* NetPrisma LCUK54-WWD for WWAN Ready */ + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010B, 0xff, 0x00, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010B, 0xff, 0xff, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010C, 0xff, 0xff, 0x30) }, /* NetPrisma LCUK54-WRD for WWAN Ready */ + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010C, 0xff, 0x00, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010C, 0xff, 0xff, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010D, 0xff, 0xff, 0x30) }, /* NetPrisma LCUK54-WWD for WWAN Ready */ + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010D, 0xff, 0x00, 0x40) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x3731, 0x010D, 0xff, 0xff, 0x40) }, { USB_DEVICE_AND_INTERFACE_INFO(OPPO_VENDOR_ID, OPPO_PRODUCT_R11, 0xff, 0xff, 0x30) }, { USB_DEVICE_AND_INTERFACE_INFO(SIERRA_VENDOR_ID, SIERRA_PRODUCT_EM9191, 0xff, 0xff, 0x30) }, { USB_DEVICE_AND_INTERFACE_INFO(SIERRA_VENDOR_ID, SIERRA_PRODUCT_EM9191, 0xff, 0xff, 0x40) },