Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3012791pxb; Mon, 18 Oct 2021 06:35:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvlwhScpp+rImFTHdzBENK9vPkGsl6RiqwQiBWe6wBPykCaZC637scoR5v+rcgbDht053f X-Received: by 2002:a63:368a:: with SMTP id d132mr23432126pga.342.1634564152072; Mon, 18 Oct 2021 06:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564152; cv=none; d=google.com; s=arc-20160816; b=jBJl7I4R1AxCB22k0O8rfH17RS8HML/jrrPOpA59OVphcT1gcA+qa15kPOxjpW2CmL hn/M3CclwLjLyqC8vJOi2oPQoiClYdG4O3lhUoHyLNDjkdnVdY9em2recQT5j0WrQE4v Z2SB3yLLylmkecG1aATjyjADUC+pNHeUIiXvdB7pcP0qLMiG+XuyhRUHSjA3laatMFu1 ounBXERjtyxWmzTE9LS2mgEVj65I+EnAU86J7SBcYCHFGTB7uud3dXqFA+ya96v1gg9N jHtHlq5eS4XMf0f271G5rhazHkL18UFNh6MZEfJ3h/Jw/7R4Nm1G+E6LPRHKwyPhp2wS 0i1Q== 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=lk9nqEjYf70DqiVWB9UkXyKkl9a8Fl+WT/CZSkEytbN+On+G1MfkC0D4656RPYpQj/ 7nBOAYXSaP5WgQDTJwM79yFIMCxKPgogh4kMmtBGCNT0fBS8hHMzAQI149d/fSATz92N PDlW8Huv0fbu2DzityV2B5IXX+YCeHjKZ+sLo9FbhBMJgVN/NFL4MAkPkmst6I7kpDms nQwTT1EQdeZSmRKT+7G2tC3Gknx0HWvDpp8lGr6wWye5v98QTCB7TaDEvWNcOg3HGxwe eyYhITFKFZvAvJe+UjTw+d/3MGyU321Cp3SQCYkHKhpVzV28DeaFej1QXn1B2GDWBDL0 YfyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vgwrYQTg; 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 ot12si23470663pjb.49.2021.10.18.06.35.36; Mon, 18 Oct 2021 06:35:52 -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=vgwrYQTg; 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 S233084AbhJRNgu (ORCPT + 99 others); Mon, 18 Oct 2021 09:36:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:43870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233106AbhJRNfJ (ORCPT ); Mon, 18 Oct 2021 09:35:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A7236135E; Mon, 18 Oct 2021 13:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563826; bh=5XQC/5gA2VzzjIOsTD3/VrSSjs40RAnchdlV1WviRlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vgwrYQTg/9n+/0UAhPHBGKKgoixrPYPJ8GlX6pZ5wTYwwrCAsrkc0ZQJF62hd6HoS Uh9ZlULZ5fDUvEScOs8PbuHsgljBues2Z5TfECkjvWrbb4Ql0ffzex8Qy12f0YVFlQ rXcaSSLJx3bHyUypVMPKGyovltiBEJurPMxrPxK4= 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.4 30/69] USB: serial: option: add prod. id for Quectel EG91 Date: Mon, 18 Oct 2021 15:24:28 +0200 Message-Id: <20211018132330.474849289@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132329.453964125@linuxfoundation.org> References: <20211018132329.453964125@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) },