Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3286170pxk; Mon, 21 Sep 2020 09:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFNX4sLK2U+Ppoq5AlS25uEFg7z0I17EIPqSdAgOROSvGJhiszW3DbLs70bK65TT7lD3wk X-Received: by 2002:a05:6402:1109:: with SMTP id u9mr579711edv.74.1600706573841; Mon, 21 Sep 2020 09:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600706573; cv=none; d=google.com; s=arc-20160816; b=rDw6UHB9DxlAhgKRdQO41ZjJDgneob/IYgkv+zlAetUWgQXdCRdIvKbFAqoeWqmf3y zhf2WFqMCtJNxFsdUng4T1/JfofOvcRiIab/Pgjwzh1WHt2fq3RcpyA1IL+vUPOW+E4Y fgBRWYuPn1DcAH9Dxhgfq4OEzVYk7kn8oeLneWEsPn41HeYvX7J3IsSaXNkCa6V8xx4o GtyBEBEHJyG5iYSm0PsLqSAxLGAPwkmTmETzRTHji+q8T8X+yhf9CsWDUhq66nLfVKPq CAsMnNWAXvbvGttcYW4MKgFoHWTe/g510lhZqy8o8FI5ic+dFC82u5M1w5TgJOJJR0FS QT3A== 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=YxtgJy8oKgELvTNXq5ozuHsc41azdoSS9Thjelxi54A=; b=ySc0spOupHEWbeTriGeQOHDFLNfeaBGlUciG7fklsZKozqRss/pU2GPtVYfRY1mz16 TBRXSl8S4Y27wNepULLzqOSrtrp+zvpJUqHdxZJojE1KKwwECyh56tPnVfmxTs0OQ8ym xGUbQdQy4sbfFeYVMgaegp35SyYxOzrb7wZq8Y4K8Fd+PhROCG1ohuxW1jert/do0dvN xzdz7whynlmNbPF0h1Ji2VjVzSZAdOIE5BX5LLWog2I8i1fwKzFDHDP1jCwJqBk8/Zqi W9lUfbi5P3soJrb5oNmaTOId0DF2GwEJ6uOAKo7nC2bRSe6fXzmFtPiv7ZUXFjGa9bIV TMvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="A/T9zY1C"; 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=fail (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 b19si8566372eds.387.2020.09.21.09.42.30; Mon, 21 Sep 2020 09:42:53 -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=@kernel.org header.s=default header.b="A/T9zY1C"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729357AbgIUQkg (ORCPT + 99 others); Mon, 21 Sep 2020 12:40:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:42690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729316AbgIUQkJ (ORCPT ); Mon, 21 Sep 2020 12:40:09 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 C693B206DC; Mon, 21 Sep 2020 16:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706408; bh=1K42RPfWFa2MUGLy7tJgYoAYVchLt6uhQyYG7oJD8P0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A/T9zY1CYH9o1pFhKSxBDpSh8fM2upCYMzS4qCwmwiDxQ57Xv+NK6r7qJ1bHj+D8V nU8rn8BqeFdCQ0rGo0abDVF2xYmzC4cqnfEBdTb12B2PCs/IzaRiyt+TRyI+7+QSJv G9op5EZ37z4kvZsJpyl2T9wg4DMG52sNpOZJj0tA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aleksander Morgado , Johan Hovold Subject: [PATCH 4.14 57/94] USB: serial: option: add support for SIM7070/SIM7080/SIM7090 modules Date: Mon, 21 Sep 2020 18:27:44 +0200 Message-Id: <20200921162038.162721486@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162035.541285330@linuxfoundation.org> References: <20200921162035.541285330@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: Aleksander Morgado commit 1ac698790819b83f39fd7ea4f6cdabee9bdd7b38 upstream. These modules have 2 different USB layouts: The default layout with PID 0x9205 (AT+CUSBSELNV=1) exposes 4 TTYs and an ECM interface: T: Bus=02 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 6 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1e0e ProdID=9205 Rev=00.00 S: Manufacturer=SimTech, Incorporated S: Product=SimTech SIM7080 S: SerialNumber=1234567890ABCDEF C: #Ifs= 6 Cfg#= 1 Atr=e0 MxPwr=500mA I: If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x4 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether I: If#=0x5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether The purpose of each TTY is as follows: * ttyUSB0: DIAG/QCDM port. * ttyUSB1: GNSS data. * ttyUSB2: AT-capable port (control). * ttyUSB3: AT-capable port (data). In the secondary layout with PID=0x9206 (AT+CUSBSELNV=86) the module exposes 6 TTY ports: T: Bus=02 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 8 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1e0e ProdID=9206 Rev=00.00 S: Manufacturer=SimTech, Incorporated S: Product=SimTech SIM7080 S: SerialNumber=1234567890ABCDEF C: #Ifs= 6 Cfg#= 1 Atr=e0 MxPwr=500mA I: If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#=0x5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option The purpose of each TTY is as follows: * ttyUSB0: DIAG/QCDM port. * ttyUSB1: GNSS data. * ttyUSB2: AT-capable port (control). * ttyUSB3: QFLOG interface. * ttyUSB4: DAM interface. * ttyUSB5: AT-capable port (data). Signed-off-by: Aleksander Morgado Cc: stable@vger.kernel.org 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 @@ -1826,6 +1826,8 @@ static const struct usb_device_id option { USB_DEVICE_INTERFACE_CLASS(0x1e0e, 0x9003, 0xff) }, /* Simcom SIM7500/SIM7600 MBIM mode */ { USB_DEVICE_INTERFACE_CLASS(0x1e0e, 0x9011, 0xff), /* Simcom SIM7500/SIM7600 RNDIS mode */ .driver_info = RSVD(7) }, + { USB_DEVICE_INTERFACE_CLASS(0x1e0e, 0x9205, 0xff) }, /* Simcom SIM7070/SIM7080/SIM7090 AT+ECM mode */ + { USB_DEVICE_INTERFACE_CLASS(0x1e0e, 0x9206, 0xff) }, /* Simcom SIM7070/SIM7080/SIM7090 AT-only mode */ { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X060S_X200), .driver_info = NCTRL(0) | NCTRL(1) | RSVD(4) }, { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X220_X500D),