From patchwork Thu Jul 27 22:23:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kohn X-Patchwork-Id: 13330882 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 48409EB64DD for ; Thu, 27 Jul 2023 22:23:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbjG0WXJ (ORCPT ); Thu, 27 Jul 2023 18:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbjG0WXH (ORCPT ); Thu, 27 Jul 2023 18:23:07 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0608.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::608]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7FE8F0 for ; Thu, 27 Jul 2023 15:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DuUa9Jp4cvf4MNqWxmJ5CCUPTUzLQA8KCllrMntB0H61i9rVJqxzGj2XxTJPqjUi904ARqKZHL/P9r1CxKHNwPEwTsywf7TzHEgMKjU8g+k1mkbPw0sGYc/QYKMsLSvNA/vaqMGiJt8reSz2T7N2hGaUewVXZjwD8kUxvRk+SBVlneWaBbK7ZauV6xrY0Kp+bluxv1T4xkq325OiJKzGRF4XDQF4CS6eGQGqV2C34Bt0Srp8Ut2830TTBqFgTwRQhVoJlZNAlgNwJkmYU51oMpKw8s3Ut3kn4ugsbJxTRrpgtaff6V0nr8unkXzOxTz3E+Q8dHLiezt3uwmHemJnVg== 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=3RxeaYznqW5dMNjMB6w0NSnCCHydjUZV1qrgtoL0HXQ=; b=dNwKDPCe6Y1FLMWal24WeEBVt93lPPj5cCjtTFjiBfpU/nLw6n1u+1+5jQQACauT6RUKaGvqwItqMxUlJ1YhV6z9TkZwAL+aBF1N2X5+AE/1LddJ6q37EHJkqJl5EXGB/OpmmbYstnfNTFsiJ35LzgD4P3KbVrG16xMpfaubVf4/SDkCc/gt4KHcGzFBAcrveFeDglDTuqwaBo9eJMrJeZhkqEmm2jm6cO5REXsIsu86E0XL2zDkEffr8wS+6iMfNn9qIy6vNbjHH/7a2usOqVkNzA6XzJjaFxPThIm+myUWAw9G8MWu/fz9v4yHFtVJRZgvV4ZUIySMkgc/3LMe8A== 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=3RxeaYznqW5dMNjMB6w0NSnCCHydjUZV1qrgtoL0HXQ=; b=OLezitH8pZjEcB0DnkiSPi+UD4yjs8NDEXKWWwnCn1aU/vW6rdlgpWjjqrHFRoUkUTyQ/W9i3KvuSv2EKxzR9faBC255IjVG/oxNv0L3wqM3Fd9lx8M2bPVz+BMObYHPkV/2MbpROA2ED4aAV/E2/S/Kttc3XqpFTTa1Q5ugICQ= Received: from AM0PR04MB5764.eurprd04.prod.outlook.com (2603:10a6:208:12f::20) by AS1PR04MB9263.eurprd04.prod.outlook.com (2603:10a6:20b:4c5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Thu, 27 Jul 2023 22:23:00 +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.6631.026; Thu, 27 Jul 2023 22:23:00 +0000 From: Martin Kohn To: "linux-usb@vger.kernel.org" CC: Martin Kohn Subject: [PATCH V2] USB: serial: option: add Quectel EM05G module support with product ID 0x030e Thread-Topic: [PATCH V2] USB: serial: option: add Quectel EM05G module support with product ID 0x030e Thread-Index: AQHZwNivXXbqn91jjEm51kOyXzwZzA== Date: Thu, 27 Jul 2023 22:23:00 +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_|AS1PR04MB9263:EE_ x-ms-office365-filtering-correlation-id: 73e48c5f-1a12-42b8-ad5f-08db8ef00963 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ix/HFJbvw6xdW4hUZwykCVNeoG0KMIkG3EOdIcqw/Z8p7tzcjarYM04Fv1XhFENn2nCHVzD5bP5vAFh2Yl86paQdcyMp+QePVPD9/GBKBngRKs45J6FgDlplGH2Pe/Mwmf4UsoR0BN+aY1eSZB9cwV+ZqGW8wzjoGymXEHc2dIWmwzBwIK+WXvimKf2wNj52gYl1tPp+1PiP2V+BimqY7Sn47L67LR5ECYiGC7aiKZUzjk9Xo6tijb6U5NNp/PZdHVoPLmE5PSnngdwuq8vw2pvHCsrJTeDX3ZIth2CTa1wbFJnpGNtI8AUnNaSjnrxzDy+ICmGgo6sAV/NwzhF3tXscVhWRXg5NRF9EPY5X85Z8Pr02YnRJSeG62XoOBazAwrqQ5TvAH1gclH2YGcbgiqxW/gZhMQmP0FyVqNYhzsaWrhkMCOs8wz4GIqGdOCp1aQoBgBS/ymxrIrHvjz0x5FEHkExk8Cxndxr9dmlbrwOI9Iv1zZ2/PxKpPLHBZO8bae6GqfG36HIcEx1GS8vHPjHP5aUB1pMSMqsQ2LqqEChfMWCJcKtPthRg5oWR3g+ZneEd02ZehdAI82J+r1fAFUJZQLtB+NmDQRpEB4v+oo6zEUOqW/ZL/RpbH0YvXEW1qF9l4Exwib/0T5HqP5t1iQ== 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)(39840400004)(396003)(376002)(136003)(366004)(346002)(451199021)(107886003)(38100700002)(55016003)(26005)(71200400001)(186003)(8936002)(43170500006)(6506007)(66476007)(9686003)(64756008)(66446008)(66556008)(4326008)(66946007)(316002)(7696005)(6916009)(91956017)(8676002)(5660300002)(76116006)(41300700001)(52536014)(478600001)(2906002)(122000001)(33656002)(86362001)(38070700005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?soxNVO47Oc1MsWde7cEX59g?= =?iso-8859-1?q?VOng0cXwtDHwGqU3Z5gknPah9GJ9TCc20MB2NMQ5lvlS1ZwP7IXy05/JrXZO?= =?iso-8859-1?q?/1YyhZ9hxdVa0GMtBzMIBXWvWI/Fueno9y75BHV8WLfJ+CBlTVw6k6Wsz9oC?= =?iso-8859-1?q?9wgUak95lqNo/zmZHyXfadGfG9YKHxj8uV0IwfoqgB9wbENtK11K3WRl6Tvy?= =?iso-8859-1?q?PeZmNHU/QQkYNqxIjCHTWTSO0gXcdpErEFq9T+aGd3SrXr4cNdXYMv6BnrQW?= =?iso-8859-1?q?QuiAxjVgCsYaSH/jfuVgBocm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gQ0SH?= =?iso-8859-1?q?Y97guTZCC6QdREFb59ynLuMqu39sivD3rWTbbA5nGXy78OotR6R4/aw5OtFo?= =?iso-8859-1?q?o45xd0WyW7i8NwPBTWWCl0IlFTCL4W9+mH71nshqoqJ7/1zputY+lxyXGZO2?= =?iso-8859-1?q?9Ls9u3XtU3ggIWjL/D66BM4+HbsHyYQE6d5Do9/PfmlRm51p+LiPOlAgp0aF?= =?iso-8859-1?q?ioORu3BwJA0k1zVRSjk+QxuHxopoPk7e/7TYwojAZEgxjQlhKFy40ajUUiSS?= =?iso-8859-1?q?sKC6sHC77JhfqHb22zCHNIFJScr7pX0/+yAR6SrHh7D4Y4wJUJuMP9Nrt0cq?= =?iso-8859-1?q?Wc7cnwsv527zun1/AwhFuAwWD6Nh0xARIorxGtIVJrszX6iEdSlNWvaUyH2l?= =?iso-8859-1?q?NE8Z/6B42AMqBojItpg1qfQGnGx18F/NPq+clSUhgCYEAGFGj12/Huak=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: 73e48c5f-1a12-42b8-ad5f-08db8ef00963 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2023 22:23:00.3759 (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: 6x8EP97E9EbyjlSzSVgGPBMDHfzdwD4slZ5W6LvH0Q5VgNWC63Tfbfq6+ClU3kSe/p4wJNJjS69GOASIAWjyPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9263 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add Quectel EM05G with product ID 0x030e Interface 4 is used for qmi. Patch for qmi was also send to netdev mailing list. T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 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=qmi_wwan 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 --- V1->V2: correct number of interfaces and reserve interface 4 for qmi. 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..2b0d77c7ee43 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -258,6 +258,7 @@ static void option_instat_callback(struct urb *urb); #define QUECTEL_PRODUCT_EM05G 0x030a #define QUECTEL_PRODUCT_EM060K 0x030b #define QUECTEL_PRODUCT_EM05G_CS 0x030c +#define QUECTEL_PRODUCT_EM05GV2 0x030e #define QUECTEL_PRODUCT_EM05CN_SG 0x0310 #define QUECTEL_PRODUCT_EM05G_SG 0x0311 #define QUECTEL_PRODUCT_EM05CN 0x0312 @@ -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(4) | 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),