Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3019830pxb; Mon, 18 Oct 2021 06:44:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiT19X/QLAEK5DNPX0EGADVDD8BgdIMDdMdEbsL1178B7SaC5owuTnN+h905RFbQ6I8PEp X-Received: by 2002:a17:90b:4b48:: with SMTP id mi8mr26322137pjb.106.1634564665016; Mon, 18 Oct 2021 06:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564665; cv=none; d=google.com; s=arc-20160816; b=qedoZpeo5bM8rIHvZcIM8i3wmqHXWhhBcZoSeA9s57i4hAeePOAIqvbs6uqe0qNbhM 1/PeuTZSaZvIpD3fFZpuKPNxbZzGCGGUHrJdg0tvMoUz/Fg9qD1YAhXl35qMZuszVerV pMTeE93/3od+TdEYjDvKMOpkauIceHehqk27c2+H78+rsDsLBp2ZZ21xqqVu49xk6PkL Qd5LB1SFveaxd7OOpQQTKSvVDpsmShazKKQJRsEnH7G4BgC7eEo69tQc2bdqbmY3jxrK XZGWtt7cxzKT1fPq67/tZwVaayZQ/a2POmkaxI3g2D7do9OMtT697jJ7OWdfte34c0tg X1CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1lwXWixGTf+RXpop9OqJ/9FHNHM2k+s8lJcADfdTAig=; b=VV4q2wwafKq0g2kw0Rz2KN4SItjCtOMvylvzDq9+NtHH0Whf6p4pQZGBnmXeMakBvn Y/7JyxD8FLdFmvAPnkvs5k+yhIgKO/j3y/k0PqfwKtXcnGauz9oLdl5VmwGEw9hNHNOs vL2EHlPL8aKMC59R25UE8Xg8CqECmBs//qBQcoXuH+Nq/CACtmFFF1YkcmeJv6m/esad AsNDVOp8PT0U6NpoaUdjEy0WQtTPJKxIyYgqjVkKCv3s05ouBN4Am250anJBcWAFoGJ7 UHbcT/vwuYj9B+DmaAmn5w8Kh+GLl1ok1PCulVAYcyOJFKH780S87tnyFNhZ/bAlBUtZ 7srQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eNht6iyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id np6si23527154pjb.111.2021.10.18.06.44.12; Mon, 18 Oct 2021 06:44:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eNht6iyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233062AbhJRNoK (ORCPT + 99 others); Mon, 18 Oct 2021 09:44:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:38832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232817AbhJRNmF (ORCPT ); Mon, 18 Oct 2021 09:42:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C180061440; Mon, 18 Oct 2021 13:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564035; bh=5XQC/5gA2VzzjIOsTD3/VrSSjs40RAnchdlV1WviRlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eNht6iytGPDAHgVFq7I4/GWA5yj9bIhksPa7Ve3Xr4UBqFIUEVVzCSabS5R2cP89X 154WqXxlNnimwMlHrhbiZ5dT3qIrmxz8r80fv6mYdjQb3ncLkxhDR3qu/U861MnmrP 0NVesNWmmzPJLJYuKnpsPU2PPUzJBHnJzg+0/IWs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tomaz Solc , Johan Hovold Subject: [PATCH 5.10 039/103] USB: serial: option: add prod. id for Quectel EG91 Date: Mon, 18 Oct 2021 15:24:15 +0200 Message-Id: <20211018132336.025269834@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132334.702559133@linuxfoundation.org> References: <20211018132334.702559133@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomaz Solc commit c184accc4a42c7872dc8e8d0fc97a740dc61fe24 upstream. Adding support for Quectel EG91 LTE module. The interface layout is same as for EG95. usb-devices output: T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=2c7c ProdID=0191 Rev=03.18 S: Manufacturer=Android S: Product=Android C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) I: If#=0x1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) I: If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) I: If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan Interfaces: 0: Diag 1: GNSS 2: AT-command interface/modem 3: Modem 4: QMI Signed-off-by: Tomaz Solc Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/option.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -246,6 +246,7 @@ static void option_instat_callback(struc /* These Quectel products use Quectel's vendor ID */ #define QUECTEL_PRODUCT_EC21 0x0121 #define QUECTEL_PRODUCT_EC25 0x0125 +#define QUECTEL_PRODUCT_EG91 0x0191 #define QUECTEL_PRODUCT_EG95 0x0195 #define QUECTEL_PRODUCT_BG96 0x0296 #define QUECTEL_PRODUCT_EP06 0x0306 @@ -1112,6 +1113,9 @@ static const struct usb_device_id option { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC25, 0xff, 0xff, 0xff), .driver_info = NUMEP2 }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC25, 0xff, 0, 0) }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG91, 0xff, 0xff, 0xff), + .driver_info = NUMEP2 }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG91, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG95, 0xff, 0xff, 0xff), .driver_info = NUMEP2 }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG95, 0xff, 0, 0) },