Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3028937pxb; Mon, 18 Oct 2021 06:55:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqioL5xfVyWt9Cgyokr/ujru+u87wc3iwYvxSqj1yORcmg31BG8ruTSBZ9nBViMjJLAUrM X-Received: by 2002:a63:f346:: with SMTP id t6mr24017270pgj.345.1634565356177; Mon, 18 Oct 2021 06:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565356; cv=none; d=google.com; s=arc-20160816; b=So3b0j9D8dGrlaYdDAzTRQFEdEkGrcstWusaPAFMyKlO1vy8CaNGhkIILb1f1Gnch4 xmJiZaxXtBh1XOWa0uQuv6LzRH7nT8yHDMI8kYcH9PBslJIiK81duz/PbVP1P3pyliHz OZx/de0Omx8OFFhH6EcIfYoNzEEx1A7fuNj6AfPC3AkAUbmeIgmzAXsAWGp+iS7an/oP jHdckPl8EwHjGjY4ax/VJQYBl9McmwA0m6L5X2iI8tcI5LCcr7NJ5p73WETq5uKKbJ5G lbTZ7nIvkWjAVIrf91ChIHPkh9XMoNvfuf8zEsYaT5Ok/QtLjj9u7iFXUZ9MtR1ojMYH zx7w== 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=jkZFNZa6kr4b1FPbaa8AkDhdlyPRx75Q7PYeOFRJIUkpjeDti2WHPp2pSbpMga0K2A n6JUSIzlb72HvVIIhoEgpSJHw4n9eITwiHaKEI1s+OXESVf6KnGDaH8487+kCwiVeXn1 D+IThHOa3R+KqJaqLM87JtPbs/5fvNmplvPsMcBNvvTLw+E4YEwHYoAGYVS4/6vNnr89 JeO4yofY3LrUIpUJDNFuxmocSrpfkg7LedI0gB4T7XzpKdWVBTQwphXFvtDGCDM298n1 7kJk9EatMelw/pzHdMCu6b8g/h/omE3lQIM2KOdFdoxfrtBTIqMBC5t1ra37LANKkFST cUQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gWUZwhsG; 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 pi12si21527682pjb.98.2021.10.18.06.55.42; Mon, 18 Oct 2021 06:55:56 -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=gWUZwhsG; 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 S234277AbhJRNzk (ORCPT + 99 others); Mon, 18 Oct 2021 09:55:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:57670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234180AbhJRNxR (ORCPT ); Mon, 18 Oct 2021 09:53:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6392619BB; Mon, 18 Oct 2021 13:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564343; bh=5XQC/5gA2VzzjIOsTD3/VrSSjs40RAnchdlV1WviRlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gWUZwhsGRXVtuQdnML1YcTWi3NmEklUdUZXU++Mzp6i4LIY7Pjaw3SP5ZUTqFdI2j dVSEWiwTU36vP+P13ThMButb5J8kyEYp49ccVg8NnRbs1QfLo4vdOROuoCM5xchTTU nAO/OqoHxIsaomX+Bae1dbCASNb5LLoZvZig8wmQ= 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.14 053/151] USB: serial: option: add prod. id for Quectel EG91 Date: Mon, 18 Oct 2021 15:23:52 +0200 Message-Id: <20211018132342.415769765@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@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) },