Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4819281ybl; Wed, 22 Jan 2020 05:21:38 -0800 (PST) X-Google-Smtp-Source: APXvYqy/ZeA+3Ezg+uieJDOYsJfGatkAcncNV9oUkgY/9LZXSGyNgo1iAEdoR825JCzR+1a4kXh3 X-Received: by 2002:aca:481:: with SMTP id 123mr6974958oie.110.1579699298819; Wed, 22 Jan 2020 05:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699298; cv=none; d=google.com; s=arc-20160816; b=BaePeTcjokZk4CwUuRjZV95YLmVen+qs4mG80OBK4vkqZM2ZooSSG0jpyNm3W1dscH wJyA5lEe/buk6mXfnpmxx4A17G+w9m+HVtwDVLibaGXJyeL2vrFLp+GE4ITNn1VMEBao ORyQ4deUtWIkFGGFJWrTanq8WIWj34QnI3nd0AuYo3xE04y0upMfAja0deyRZsNsIDOc /YXpjZwEqYYkeiXIJofUheYizE4YWPkN45+mkYpDW5yq3rhSLKV1PCoe+WxIiOJ7f/WH Ge7rFE2GQHH80SrXzJ9AnVteDYDssv/BYBGQH3+qEUNMyFQuCyKnq3vY+VoU/3IXu5K3 3A6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=a6s65brT9sFnP2quWrOS0PsA/W4OMeXgpvOaePNTa90=; b=FYdmIlXbT/8KxoYH4bHhj8oUb2G6Jt7zXQnFWPxQPDsfwEZo+y93IqHysmvREN1umz 2jdNuEShGMxL4/Mk+MA+ya9I2rpdyn7jbCdamcdGs2zomtfdsLnCGX8gkT+7KJ8dv+Zk Fl4Lfkw3IaqH2EvjZmWz/RFXL0ehY6FdJd8H5XhDH1TEIOQXIkt8jAwIdKx0lbHgfuev xNn6zEFRrpJzgvpwl3BRzH5vk3MWnh1fXwoRjNX8mfysVjx/WjWsBfS/B8iXLCWfef4e aFmDhvcdAdiaBwOI9FscyPLn8hp/sx2XweWWKBDgFqrUXoMq8pJ2Lhd1jvvPD7qlPupR Km3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NPBR5+Y6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p207si12653964oic.111.2020.01.22.05.21.26; Wed, 22 Jan 2020 05:21:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NPBR5+Y6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729398AbgAVNSi (ORCPT + 99 others); Wed, 22 Jan 2020 08:18:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:34330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbgAVNSh (ORCPT ); Wed, 22 Jan 2020 08:18:37 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4476C2071E; Wed, 22 Jan 2020 13:18:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699117; bh=nSAHvOUVAz2iud++EdWPQCKYaAGoYNGyurMVBBBXbtM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NPBR5+Y6GWNYTsZ41FV5eP3d6vXjnMtnyRdp29DGxGFDmgMGcmmjQP3tSbPSVYldR dU/Hb3DNfuw9kcwZujTHOOOjV72hfBpbBttWPfvRdADbQUh+HiYgQEZ726KjXvayeh V0l8ne4cu25Fn2Q+Wj83EBqnAYb9U0i94R2NSMBs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Reinhard Speyerer , Johan Hovold Subject: [PATCH 5.4 046/222] USB: serial: option: add support for Quectel RM500Q in QDL mode Date: Wed, 22 Jan 2020 10:27:12 +0100 Message-Id: <20200122092836.857435691@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Reinhard Speyerer commit f3eaabbfd093c93d791eb930cc68d9b15246a65e upstream. Add support for Quectel RM500Q in QDL mode. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 24 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2c7c ProdID=0800 Rev= 0.00 S: Manufacturer=Qualcomm CDMA Technologies MSM S: Product=QUSB_BULK_SN:xxxxxxxx S: SerialNumber=xxxxxxxx C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 2mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=10 Driver=option E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms It is assumed that the ZLP flag required for other Qualcomm-based 5G devices also applies to Quectel RM500Q. Signed-off-by: Reinhard Speyerer Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1107,6 +1107,8 @@ static const struct usb_device_id option { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM12, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0xff, 0x30) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0, 0) }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500Q, 0xff, 0xff, 0x10), + .driver_info = ZLP }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) },