Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4123169pxb; Mon, 8 Feb 2021 08:29:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF5+uEw+48mpKqAgmG8oQAOVDeV5wJTKPP/LaPpapkUUfqztwvf3wVoNVqVsANlrWRP27N X-Received: by 2002:a17:906:84d7:: with SMTP id f23mr18563612ejy.87.1612801743799; Mon, 08 Feb 2021 08:29:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612801743; cv=none; d=google.com; s=arc-20160816; b=UEPshEpWKrfOc7MX8HkRy4ix7TxaiVsoO+22OneHmqUCes1/P9avjfh4BVNXTqSXdz xJ2rYb3wOecB/KdUMTxkRUDMNBXsdU74En3rOq5bWnKlMm2/wJAcN0Cc29Uc9YGzGYNv IfOW22Rda8W3jkc7fJdzVIT6S3MeN/Q4VHHdaizapph4hgY6LVipQmwC3XLtVJvQz6/8 gLj9WPpBLITMD6pdeXVrtfGXVqhxZFLL2+B2tos8pkXaTcwSgS++JZj9FbatKhfXpJ4i Ue1t2/tEViI/Jai+K52mjB/rADnSLXjqzd3UAOlsQFVgaobycqA0X5lZxBUZIwPwC8lI DwfA== 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=cVwVnzru3ZBfr2zj/AOVVMZ2JwUv7+mPlE5l+5miH/Q=; b=cm4RlBji0Dh9c21ezhJ9CWhCO2OJC07ShmesHIGZ475qi4E0byt+3BCXSPAObGI8I/ 8/X4YHu5jihpNT8dv3RgqwBKrduHXSVuiR4saUSjPctjbD4eFYRx3YC5EUdW+NfFSh8V +uOdiFGn0MoQ7NvtLsHHmClYk10eTIFU51WnrPvcGlvV0Go326sDDQ+UsGxxN/Dtlr4X EjxWbTTurkoRUErmCbVMbmDxKMYKOjNoBwFmizcqZUsupQIvAfhEHbKWH/0+VjDGE1vW QcMFMO6QDD4cn+a3gi0qMTF5w9qDu/8hbSZEFkgkHzgbFpJaWuvixSf36Cg19NA6l48D h3Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wSnxJEYY; 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 jg13si14024128ejc.669.2021.02.08.08.28.40; Mon, 08 Feb 2021 08:29:03 -0800 (PST) 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=wSnxJEYY; 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 S234410AbhBHQ1o (ORCPT + 99 others); Mon, 8 Feb 2021 11:27:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:56648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233282AbhBHPLP (ORCPT ); Mon, 8 Feb 2021 10:11:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2030464EC3; Mon, 8 Feb 2021 15:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612796906; bh=HM0XlfwS6bkLvk0EzFap5NM6LxYLMPb4FCeFAwji3uE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wSnxJEYYARYqbhvr/Y8jagZGEJQtw7Mg4wWMgLVcFGLvFHc6F1TEbfzfOFGHIeqB+ z+4IPQDctDKIZm2y+MSVQnn67+syV6fZL8XNgRtHNxGSs6R/hJ5lZFW4q/cvIdWLay kh48V1TE/tsa3KSecP10noXoC8GRrQsBSlBf18QA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Schemmel , Johan Hovold Subject: [PATCH 4.19 03/38] USB: serial: option: Adding support for Cinterion MV31 Date: Mon, 8 Feb 2021 16:00:50 +0100 Message-Id: <20210208145806.277869716@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210208145806.141056364@linuxfoundation.org> References: <20210208145806.141056364@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: Christoph Schemmel commit e478d6029dca9d8462f426aee0d32896ef64f10f upstream. Adding support for Cinterion device MV31 for enumeration with PID 0x00B3 and 0x00B7. usb-devices output for 0x00B3 T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1 P: Vendor=1e2d ProdID=00b3 Rev=04.14 S: Manufacturer=Cinterion S: Product=Cinterion PID 0x00B3 USB Mobile Broadband S: SerialNumber=b3246eed C: #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=896mA I: If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim I: If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x3 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=cdc_wdm I: If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option usb-devices output for 0x00B7 T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1 P: Vendor=1e2d ProdID=00b7 Rev=04.14 S: Manufacturer=Cinterion S: Product=Cinterion PID 0x00B3 USB Mobile Broadband S: SerialNumber=b3246eed C: #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=896mA I: If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan I: If#=0x1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option Signed-off-by: Christoph Schemmel Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/option.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -425,6 +425,8 @@ static void option_instat_callback(struc #define CINTERION_PRODUCT_AHXX_2RMNET 0x0084 #define CINTERION_PRODUCT_AHXX_AUDIO 0x0085 #define CINTERION_PRODUCT_CLS8 0x00b0 +#define CINTERION_PRODUCT_MV31_MBIM 0x00b3 +#define CINTERION_PRODUCT_MV31_RMNET 0x00b7 /* Olivetti products */ #define OLIVETTI_VENDOR_ID 0x0b3c @@ -1914,6 +1916,10 @@ static const struct usb_device_id option { USB_DEVICE(SIEMENS_VENDOR_ID, CINTERION_PRODUCT_HC25_MDMNET) }, { USB_DEVICE(SIEMENS_VENDOR_ID, CINTERION_PRODUCT_HC28_MDM) }, /* HC28 enumerates with Siemens or Cinterion VID depending on FW revision */ { USB_DEVICE(SIEMENS_VENDOR_ID, CINTERION_PRODUCT_HC28_MDMNET) }, + { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV31_MBIM, 0xff), + .driver_info = RSVD(3)}, + { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV31_RMNET, 0xff), + .driver_info = RSVD(0)}, { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100), .driver_info = RSVD(4) }, { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD120),