From patchwork Fri Jul 21 18:26:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kohn X-Patchwork-Id: 705590 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C00AAEB64DD for ; Fri, 21 Jul 2023 18:26:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230445AbjGUS0a (ORCPT ); Fri, 21 Jul 2023 14:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbjGUS03 (ORCPT ); Fri, 21 Jul 2023 14:26:29 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2073.outbound.protection.outlook.com [40.107.15.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C89172D71 for ; Fri, 21 Jul 2023 11:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jMY9vYyWMiiltlizq+mXaNKiUwtk2J5pK5BBlNbsffaUpSBABWz+GE1QDwPa9R5jyRgT+Ui9b6mR5m85txUCT+sfasXjUs2FzDJmnDhG5iwyPeIwYK+Viw+N+hujJVtlEyCDFhNJpnvivrXKiscc7e2U04yS4d+XAqDp7O3Icyqb+LzW9jVwmW/UGImwDl+YVg33VXPca1FaCqBumkYuWp92sOidoQw6Ne9goD7S8k6yksOB+yIjxvh1ULHBJJvFzR+YAwvaFoLAYAOC6aKSxHfpxlf80dpjYU7w3wf/0IvDtxwzmcS+HUAl5LhykZycAU3jugCC4EV1SSRRNHHW1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=t4GzqI2SMozCTL25KwrZpR68GKEhtRXM/je8vdUI1aI=; b=eZL6IJ8UNxYz/wW0MGD2VIzc/JerUD+0MIX1wl3IV5QU2aU0N6ThclBqgo+i2bc7jDyblBSxw443qCDu/s14+HSCEvVEjdibP3o2rRwsFJOA3b2jT8hBxSaHS2gXn0aphJOV5wEGkMF4dVG3vPaohGOoprvE1P4gR7JKtyxENAp4oqb0jq7218lj1j5h43gu6AuClNPlsnZyurpTgpcd2TZx9iwN6XJytaXjF4Z49TwADPOyjquq6JyDkmo6SQrMQDJHG8cdmpPpkAcupiy1em1JVzdkN3cUHgqNiU9v16PMtvvMRVcsO6IhU9rKXQDJRUX2iWotXMhkR6LekuWX/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com; dkim=pass header.d=welotec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t4GzqI2SMozCTL25KwrZpR68GKEhtRXM/je8vdUI1aI=; b=RmPnfUK8jFvb/9SQeKV8nndqt83maLZINb+baHSFwcFJIuUTJTkKoQ7rPiy5n1GX8IEB68ipnKqK/Q+DyvRREmHZ4CR8SOpaKZ3e8XSBqx5Y/c+Ok5QOTZReOkNBWPrFeJTm23yL9TClHzdV/BB/qGfbteZhEsg7HchWm6WMwA4= Received: from AM0PR04MB5764.eurprd04.prod.outlook.com (2603:10a6:208:12f::20) by AS8PR04MB8593.eurprd04.prod.outlook.com (2603:10a6:20b:424::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.28; Fri, 21 Jul 2023 18:26:12 +0000 Received: from AM0PR04MB5764.eurprd04.prod.outlook.com ([fe80::176:d0d2:340f:7687]) by AM0PR04MB5764.eurprd04.prod.outlook.com ([fe80::176:d0d2:340f:7687%6]) with mapi id 15.20.6609.026; Fri, 21 Jul 2023 18:26:11 +0000 From: Martin Kohn To: "linux-usb@vger.kernel.org" CC: Martin Kohn Subject: [PATCH] USB: serial: option: add Quectel EM05G module support with product ID 0x030e Thread-Topic: [PATCH] USB: serial: option: add Quectel EM05G module support with product ID 0x030e Thread-Index: AQHZvABp8GNR7A2gUkm75lXf72vIlQ== Date: Fri, 21 Jul 2023 18:26:11 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=welotec.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM0PR04MB5764:EE_|AS8PR04MB8593:EE_ x-ms-office365-filtering-correlation-id: 4cc2f488-c35b-496a-c865-08db8a17f5ff x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FCNbhOhT5hSGVNHrqSD05PlnRdlT7zDGLqUKsizQplKwrCD10JV/H5mYEElicYCiWiMwk08psI6g5o4uyyHUnsBAL9Pdasfrjsly7D9ia0E5CbAJM7X041XR/zAtuN8Vcj2AdTGYL2KyzhazFqX33FM6NI9shKcVl8YeHM+2L2EEyP0p4XSaQTloGizdbn2C2vMWNe2BJcQVLJNWVGv6KmiLxzjISwBNs+t4UaKX+vPy89IXvWvpx3HKffgHWy0n+5LzzhlnZ9HThJ8LMfqwXCprUigsyZQsWpsGO/qhK2F+2+LjBvOMMtGiJpyAqBZy8JbXnsNfX1lECyokWm66Ehp9PrLpz1KCFt7SXNB6qiiXZ8sRpybQRD/OWfA/vWTSuG4UwwHjBPwDn/V0Qb/j1e03SElv0oomMByw95nCHdCyPxmU2MFs5G25+7rdoY1wjhY+ePAFgdHdz9JMD0A+XHS/QEFuNqk9VHDggtZ0Kw7pzDkTNCI9G/kzPkprXqDomOBQMvKH6r3GpCkS1fBZik7XJt3tMYnjziExIs8vlaGvubqEpvPIjYt+P1YclBNH10hD/MSoGvNBlzMriqplqNhI1jrBHvCFGxQGgWMOE14wYPb9EWI5j+BWCRzW4F3Y x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB5764.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(396003)(136003)(376002)(346002)(39840400004)(366004)(451199021)(55016003)(107886003)(6506007)(26005)(186003)(8936002)(8676002)(33656002)(52536014)(5660300002)(41300700001)(86362001)(2906002)(478600001)(4326008)(6916009)(38070700005)(76116006)(91956017)(64756008)(66556008)(66476007)(66946007)(316002)(38100700002)(66446008)(71200400001)(7696005)(9686003)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?hZLR09yEK0xUjbmnlnjulZB?= =?iso-8859-1?q?uP9dPtOeX45iQ+jokXVRFUxQHes/rO4MSkpQaepMT2RbOzdz0BZT0wXxHHcq?= =?iso-8859-1?q?kdiE67xFauLH0W+rHOZNZNohAEvAn+yz3n72RYunv17RyABIEXSrrDD3ff6O?= =?iso-8859-1?q?XKzffZVVHhfkKeT17v74Z1KQBbsticLJu6LXwLqdwRrEjV7zHOgeRQ20DRlX?= =?iso-8859-1?q?DovU/Ty6CUM9s2F48qc2qi1NneV1EqNJoSSEKm8zVl0SH+n/IjJbWIviXM1D?= =?iso-8859-1?q?zxJqlMneRGo17bJ9XrGeV5avRuFtL0XLEQQ1zEhywJ3+8lFJGUXafQ3Fk4oz?= =?iso-8859-1?q?3/aBPeWlDKnFx+dKXb1x2eeGoQxERzUyfz4CGdckYh/j5T72PS0cf+EUP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otM2g/tK4QF0nqaVQ541lLTDNZY0XkEbaHUsHKlNUDeLEtu91ZXX2DmH?= =?iso-8859-1?q?9TFUGPEm876n72YF1nvPXBjNL7EC1ouIlSNMoPQqXpTghSvM5ZTEK0Gaonga?= =?iso-8859-1?q?WKU9nmzus1/QbUombKpZPAnvrSA8uDcJu9bq41anGFCGIS3tisA8pjxOegL+?= =?iso-8859-1?q?6FcpTtMS1v8Xmwrr2SX4z3ic/pdGFwgrIAAZi50CMFh2/XQKninC6rjY2VqI?= =?iso-8859-1?q?GZKYXbRwAwrT5j3+NJ9X0h8WsNBtBtsCuq9DIK+0Ha6uhzSXr0f3WIh7YGUl?= =?iso-8859-1?q?JfGHIzwrci5Gr7+SmO1HXFFC2oYFzZPlro+NFc35ZyKeGI0m3PPCvaw8=3D?= MIME-Version: 1.0 X-OriginatorOrg: welotec.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5764.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cc2f488-c35b-496a-c865-08db8a17f5ff X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2023 18:26:11.8665 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bRWjAFViV3NrDFBgkSoI5jYKvrW41HB5s/zi4awW1qFPv62gUHDnRseusJVF3XoNF/TyS7+fuQJnwY5XTw6pFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8593 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add Quectel EM05G with product ID 0x030e T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 8 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=2c7c ProdID=030e Rev= 3.18 S: Manufacturer=Quectel S: Product=Quectel EM05-G C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=89(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms Signed-off-by: Martin Kohn --- 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 288a96a74266..cbe35c3db45a 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -256,6 +256,7 @@ static void option_instat_callback(struct urb *urb); #define QUECTEL_PRODUCT_BG96 0x0296 #define QUECTEL_PRODUCT_EP06 0x0306 #define QUECTEL_PRODUCT_EM05G 0x030a +#define QUECTEL_PRODUCT_EM05GV2 0x030e #define QUECTEL_PRODUCT_EM060K 0x030b #define QUECTEL_PRODUCT_EM05G_CS 0x030c #define QUECTEL_PRODUCT_EM05CN_SG 0x0310 @@ -1186,6 +1187,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(6) | ZLP }, { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM05G, 0xff), .driver_info = RSVD(6) | ZLP }, + { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM05GV2, 0xff), + .driver_info = RSVD(6) | ZLP }, { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM05G_CS, 0xff), .driver_info = RSVD(6) | ZLP }, { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM05G_GR, 0xff),