From patchwork Thu Oct 26 01:24:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Fragoso X-Patchwork-Id: 13437124 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 CA4DF46A6 for ; Thu, 26 Oct 2023 01:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b="FRMqhJls" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2056.outbound.protection.outlook.com [40.92.41.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F4189BD; Wed, 25 Oct 2023 18:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GEKA0VV+3x9zV9WiCLvB3GHofACNCJuHnuY3AoFFVpppwEWJ0BfIkz+GV604WuBHOkS1htDZfY4La1ZaHknCwYgRAdvegmhUbhJEvBP1SK5SrglaRguEedBBWGpD0vdHf2urLLGzAvgDCpaqD5IJzBGrr8Lc3fl1yAMRmH/xnHQ+heE/j3yiyTu9GfGlKzLk+qsOfb2Susqr3Pf43nUXBcVbyt5Sg4xrWQvQlygtxoG4xI+rxwdHyepZMsUKMPj/UsVCDXJhd4mzg4GlgkX2jNPCOyF3eH0sBcy79dUJtNX21cyVEdHk6WVaSybENMBERbB/gqcpFPk2ddayg/y4RQ== 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=HP3+lS/iSCIBPkAM/7dxf4AVdbXEMjwYdPoyZfCltok=; b=QrzHJ597KCi23x+lnaki4yLxvhQmfjM//8OcKmdYtWU2JLLSY9OapBCAaLM3pn2ARpFpKpbYIP2Oxg2DtWuKiQBzMLaGvPxFkOASJKIWOKi43PCx5T07wnjIa1xHZdPA7RoS8h1wES+86eD+Jfp331ayHO113adXDja46jOQW5zGbFyoQyhzKezsZLhpgvJskWx4/Zoe8HqVvSzvBd4PyXajwuua+/sqg8TmBIbPVqlFzcGE8rTjfNt0y0u0kQHkV5wx7Drte8Ub/InGPaUBzEfrY12EZ7QANy0ohAbJAadkscnVThNTcqlP+OmYTKzTHINt8JvUWJWW4q0bUkm7QQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HP3+lS/iSCIBPkAM/7dxf4AVdbXEMjwYdPoyZfCltok=; b=FRMqhJlsb/WdsnpqWt0SyE4X4w1uDp8FsURBhsyFiT/oRjhXmnF7VdEnp69G3+f9V9nSoPoe/t0ujNvfz6+4RoqgSWgm8rFvn90qUrhRaSY+8MXWQ62nboLC/+cCCFkmV/7Cldegud54gst1VbO+YNZKWGbH//nCDZifOoOl4/68YBg6G8h4wnKdpgr7l8yBme0/NdB9iNQ1olsd+oCxGXe7BQEylWxWBlYS8KpL4LzTmopUldNCuHREp7uOyFLU/O2c3jNImewUKhY7tEoa/hXmBUbjyik5FxkXSvcdNRfsJuttH7G4LtWiAR2biOMCDVv2P/GcA+vNaXBVUUOHng== Received: from PH0PR06MB7817.namprd06.prod.outlook.com (2603:10b6:510:ed::8) by PH0PR06MB7064.namprd06.prod.outlook.com (2603:10b6:510:28::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Thu, 26 Oct 2023 01:25:00 +0000 Received: from PH0PR06MB7817.namprd06.prod.outlook.com ([fe80::f9e:b4b4:77a7:442a]) by PH0PR06MB7817.namprd06.prod.outlook.com ([fe80::f9e:b4b4:77a7:442a%6]) with mapi id 15.20.6907.032; Thu, 26 Oct 2023 01:25:00 +0000 From: Victor Fragoso To: "johan@kernel.org" CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] USB: serial: option: add Fibocom L7xx modules Thread-Topic: [PATCH] USB: serial: option: add Fibocom L7xx modules Thread-Index: AQHaB6s8qAI51809GEez52FxUyeChQ== Date: Thu, 26 Oct 2023 01:24:59 +0000 Message-ID: <9315051ae981aaad1d46724641defc6e5f79d12b.camel@hotmail.com> Accept-Language: pt-BR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [1WF1z7u+S9D3MX+Doqypee+qyaYLAJYI] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR06MB7817:EE_|PH0PR06MB7064:EE_ x-ms-office365-filtering-correlation-id: 135b855f-94e6-41c3-2195-08dbd5c25f23 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QuSzZESDCxlRii/ULBx/ra5n4UJhbAPrB/K8Bqr1xSCV1177+R35NLcqOcj5EZxOOYyUU+OS8xug+2mQ9WmyAq2sNJSH3BzYcodnrP+jQkS9Kdq5ME5kITQU/qsfmyh4C9LvfgxmspRyqTC3ZY9ud1AGOpasFx3iKSejT/kJSrx/mt0dP1ZHb47BVpSk1QPs6n4GDhZnK5GtCwO1hJx0/QiGq4KZBdKJfmdRnGWJOtvtcF/aHhddSNTDz0WYJe1rHiuD7IJni070NHw5Wra2dcOlGj4pw0ZqKbCAOiyQ7i/RpYqo/jGDTMsR6bcIDSqy+A6UTck0bh7kia5dggrILqUViGKwH8cPP+u2VZtqcRY7wt3oKckBK0HBbPAW5g4NCz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ogwe81hTHX6SAUp1ZS0jJyOEnh97wveO7TSjlGf0XaRG1iwPe?= =?utf-8?q?mey9gAgfoMuVPoBf7vvNcyQWbYRa7l2iYKcKazNGs4gBbflul7S5kcOpRjxMc9jOW?= =?utf-8?q?KOU3JfyFMxc7kdnLSTAJcaHwMFKh/EuRIcaZAQK6lqoxep+5Mdwm2CweuaoPpbVZZ?= =?utf-8?q?2glAWUH5gmlk0B/XRmXZmagF52hKpwlR//cOb1zynX8H7tAV0EtJfehvPqFqSAZZ3?= =?utf-8?q?mRYeJxY/w2xitQiZguGk+R2/L4iW8ZZ2bIVhN7V/8y2Tj3sV/SMWH7qtJLktyCDlj?= =?utf-8?q?9KHWOpy2dzQJWXbzNg+6tLTByoQ/cZlD6JTlBXq/bWmV27flUD3iLdSRlkF6GTGfp?= =?utf-8?q?Io+xwDHYbzgwaq+jpXZc5w2/FuBzZl4xKqWkOHJyM5bYh24E8Y6Y4+jbEnmuuWkBG?= =?utf-8?q?J3OWRYDRHuOvXs5JNgVonzec3Avkug3Kl/GAVQqG52LxLiOaF2RWOxlOJweYfgcmW?= =?utf-8?q?utiSgZHK5yubkrajWBcqyuFNrpwNPK8nBI6bRlmVKVEcjgegt2vlVoen+dqC8=3D?= Content-ID: <46A7BDA3BDD98F41A5F4C084120D9644@namprd06.prod.outlook.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-73ede.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR06MB7817.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 135b855f-94e6-41c3-2195-08dbd5c25f23 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2023 01:24:59.8955 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR06MB7064 Add support for Fibocom L7xx module series and variants. L716-EU-60 (ECM): T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 17 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=19d2 ProdID=0579 Rev= 1.00 S: Manufacturer=Fibocom,Incorporated S: Product=Fibocom Mobile Boardband S: SerialNumber=1234567890ABCDEF C:* #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms L716-EU-60 (RNDIS): T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 21 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2cb7 ProdID=0001 Rev= 1.00 S: Manufacturer=Fibocom,Incorporated S: Product=Fibocom Mobile Boardband S: SerialNumber=1234567890ABCDEF C:* #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms L716-EU-10 (ECM): T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 21 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2cb7 ProdID=0001 Rev= 1.00 S: Manufacturer=Fibocom,Incorporated S: Product=Fibocom Mobile Boardband S: SerialNumber=1234567890ABCDEF C:* #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms Signed-off-by: Victor Fragoso --- drivers/usb/serial/option.c | 5 +++++ 1 file changed, 5 insertions(+) 0xff) }, /* Fibocom L71x */ + { USB_DEVICE_AND_INTERFACE_INFO(0x19d2, 0x0256, 0xff, 0xff, 0xff) }, /* Fibocom L71x */ + { USB_DEVICE_AND_INTERFACE_INFO(0x19d2, 0x0579, 0xff, 0xff, 0xff) }, /* Fibocom L71x */ { USB_DEVICE_INTERFACE_CLASS(0x2df3, 0x9d03, 0xff) }, /* LongSung M5710 */ { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1404, 0xff) }, /* GosunCn GM500 RNDIS */ { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1405, 0xff) }, /* GosunCn GM500 MBIM */ diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 45dcfaadaf98..4ba3dc352d65 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -2262,6 +2262,11 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_INTERFACE_CLASS(0x2cb7, 0x01a2, 0xff) }, /* Fibocom FM101-GL (laptop MBIM) */ { USB_DEVICE_INTERFACE_CLASS(0x2cb7, 0x01a4, 0xff), /* Fibocom FM101-GL (laptop MBIM) */ .driver_info = RSVD(4) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2cb7, 0x0001, 0xff, 0xff, 0xff) }, /* Fibocom L71x */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2cb7, 0x0001, 0x0a, 0x00, 0xff) }, /* Fibocom L71x */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2cb7, 0x0100, 0xff, 0xff,