Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8206587imu; Fri, 28 Dec 2018 12:45:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+ALzZ4PfzBkYo0KDhjbawznegf2iWfQJMpW5tGYTYGW9WFMm+HiB492/F/zQyBAo4Sr86 X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr29344517pls.315.1546029913746; Fri, 28 Dec 2018 12:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546029913; cv=none; d=google.com; s=arc-20160816; b=mSSczThahK8aZPfk7kZwZRo0F9yxGqzac5QxxOyqA4SrrJaUURRSXtCBS7gYPluSwi 1DtrqeyBZKByEqqcqFmKedozw0uaBDB8LULbuQ+uR3B5kSFRSoPP5Q2gpBrf9yhB4aLz 7SgfGhv5Av7xuH3y0x+1gm07y6Ql5wnhQFyabVmy0QUJGHoCDbuH25YkL5vBiRwizUOf tiDBui+JSSbXyFRVdIeHD0v/7IB90RMADYTT0dcCRP5VIYLEkeye3AykB7+RwxqQ97QM SoAkqrlQgwb6P+TLqHr1K9y3oYSoQ0G6O5rP40WA8f1neWI/ORi5w9z02gm8xygpl/JY 5KZQ== 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=0Pawsa6gr7M9QLW4z50wDr5HAJpECKc6C7J5oXGD+RY=; b=MNRsG49PowUAz7TJWsvaZeQOy5GOU3ermF68sf2EByqXspEp2pvW8OT9nQgG6ctrkA SiKbLeIb0e+fw7ed56Tg9LJGr51De7fJpWmxxYN/DQ2ZMNvh6xJDNAEBMycf9lZHN4VD gAAE3BJrbqaklKVHw4bzvkInjr5OanWGyXkDz5teMdEShXWy6S9Pf4x00TlrzdsHGqbs SSvNV0ProP/ThWGUSFT4uKtXZEqcjeIYN++gZY6kZOcDitDfaSOKWOWFJp73QyADfYdO WeFI8rnY+JTfUnUtKlJ4DmF8OsdJqgyOtAhqnJw/NxV9XxZJyPKz0SImCVsIYOe6PyDz PV/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C7nuAL6H; 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 o27si38980547pgl.53.2018.12.28.12.44.45; Fri, 28 Dec 2018 12:45:13 -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=C7nuAL6H; 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 S1728506AbeL1LxO (ORCPT + 99 others); Fri, 28 Dec 2018 06:53:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:52964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbeL1LxL (ORCPT ); Fri, 28 Dec 2018 06:53:11 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 473862087F; Fri, 28 Dec 2018 11:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545997989; bh=bssLn8UrTvvzWrN7aVKK3Nniygjm1ILHg6E9lyzHfUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C7nuAL6Hx1rM8k5dHzEdkb7RVrJ6DV4b60avsj+O1QSx5Af8FRfEjp/FNCZqgfUn+ eKzeeZAhpfS/vCOUyvJvrVXR3F56Cn+KBTfi4GyqXiFBrRd7SghZnYzH+7ZWGGZ6Ic tUSssbPuh24Z/m6/rqMIvn97P52uC8gW0vUTQllw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?J=C3=B6rgen=20Storvist?= , Johan Hovold Subject: [PATCH 4.19 10/46] USB: serial: option: add Telit LN940 series Date: Fri, 28 Dec 2018 12:52:04 +0100 Message-Id: <20181228113125.398241330@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181228113124.971620049@linuxfoundation.org> References: <20181228113124.971620049@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jörgen Storvist commit 28a86092b1753b802ef7e3de8a4c4a69a9c1bb03 upstream. Added USB serial option driver support for Telit LN940 series cellular modules. Covering both QMI and MBIM modes. usb-devices output (0x1900): T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 21 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1bc7 ProdID=1900 Rev=03.10 S: Manufacturer=Telit S: Product=Telit LN940 Mobile Broadband S: SerialNumber=0123456789ABCDEF C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option usb-devices output (0x1901): T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 20 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1bc7 ProdID=1901 Rev=03.10 S: Manufacturer=Telit S: Product=Telit LN940 Mobile Broadband S: SerialNumber=0123456789ABCDEF C: #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 4 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim I: If#= 5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim Signed-off-by: Jörgen Storvist Cc: stable 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 @@ -1164,6 +1164,10 @@ static const struct usb_device_id option { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920A4_1213, 0xff) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920A4_1214), .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) | RSVD(3) }, + { USB_DEVICE(TELIT_VENDOR_ID, 0x1900), /* Telit LN940 (QMI) */ + .driver_info = NCTRL(0) | RSVD(1) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1901, 0xff), /* Telit LN940 (MBIM) */ + .driver_info = NCTRL(0) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MF622, 0xff, 0xff, 0xff) }, /* ZTE WCDMA products */ { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0002, 0xff, 0xff, 0xff), .driver_info = RSVD(1) },