Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6001472ybc; Wed, 27 Nov 2019 13:11:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzOcLz0gXFsM/j0AbayJjyi/GIYYqE5Pu6j4DG7zR+U3FDL3hEbkpTeLgTo0LaPBix1ssvP X-Received: by 2002:a17:906:c40d:: with SMTP id u13mr26574838ejz.178.1574889107520; Wed, 27 Nov 2019 13:11:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574889107; cv=none; d=google.com; s=arc-20160816; b=K2yuu+8K4Bxt/6FNJSO1HniwKyydebyMuFPBZHMewGSxd9tBIi0e9+Y0Fs7BPVMbK2 b2V+XaaJBuMpjX8SlPr5da1WWSTip3gpV+p0QUe/LZvzYk0EhgCMoLSTvZAG1EnaGpZy yI6hwOsY+fiAMMm/qM7/08YJo20sDuIGyaTCdOqY0H1t/J+uTSQ5e+4xOelXJa2pmgKf WGVnicFlznbAzk/AX88aPy7HTRc3ZmNyNqcQhnD3ZNsZOxgtIz0F/4sDcwOHIFhxjX88 FWj7Krag6Ss6UtbnQBWRPgj4jEDu+qNzP+RtDCM9blTNzxEphhio/agErAwzpXF8YJrx /+JA== 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=2xZTZc2VaHSTwUy6E2Vk7pNqTvcKVKaB5v/SNEza6kk=; b=dLILSXWCFhtUz3OfeqtoV3jZ8C3rpOTiEfkgE1JCmMetZIZ5UMkuuwY4Q5/aIUO6bB Vn3fVtTOPrQsWVM7WKxHYk8MvM8USB/kqLn8AXhoFWSMbyF4b6TJ5DIm0nAl5ySq5YDa tMmUpHjA5p2OBYka02UNncTignnZu5iNwYbL4LcgqjnCSnB0pf4voaD1KpYxUCrIQfjc 2RMuxmtytZ+klBbG7MTKwuUSy56kfMfOEdYCtQA6T29sFUGoo825X7Nsfm01sEu1kJFO n/EsaK8VKdqF4O3JtDh52l37dFTbJ9LE2wiaVzAX7053nZMfB9QRL+b7nG77jD6Pp7BK HIsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eQI2C9F0; 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 p8si10549691edq.55.2019.11.27.13.11.24; Wed, 27 Nov 2019 13:11:47 -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=eQI2C9F0; 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 S1732067AbfK0VHu (ORCPT + 99 others); Wed, 27 Nov 2019 16:07:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:34062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732294AbfK0VHt (ORCPT ); Wed, 27 Nov 2019 16:07:49 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 5742520637; Wed, 27 Nov 2019 21:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888868; bh=dUyKsA+l1Lk1Fs5j/YCVO3J9HOukfmlgbeZAaLG3wQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eQI2C9F0CEM0F2tPF2pmkhkcJQcqmYQjmSdEAEJy3b1cx5kw60x5DYUBtGSMKdosb Huf2eJ81ThyeMsnaP70V1JD2CEIUnjt2ss4mp5mvzWErc9D26yAAAKLKGR24FKhwty NptkG7Tn1xFJZdz3//5zmS1+RBx2+nHoigdfYM/g= 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.19 301/306] USB: serial: option: add support for DW5821e with eSIM support Date: Wed, 27 Nov 2019 21:32:31 +0100 Message-Id: <20191127203136.709679290@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@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: Aleksander Morgado commit 957c31ea082e3fe5196f46d5b04018b10de47400 upstream. The device exposes AT, NMEA and DIAG ports in both USB configurations. Exactly same layout as the default DW5821e module, just a different vid/pid. P: Vendor=413c ProdID=81e0 Rev=03.18 S: Manufacturer=Dell Inc. S: Product=DW5821e-eSIM Snapdragon X20 LTE S: SerialNumber=0123456789ABCDEF C: #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan I: If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option 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=ff Driver=option P: Vendor=413c ProdID=81e0 Rev=03.18 S: Manufacturer=Dell Inc. S: Product=DW5821e-eSIM Snapdragon X20 LTE S: SerialNumber=0123456789ABCDEF C: #Ifs= 7 Cfg#= 2 Atr=a0 MxPwr=500mA 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= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option 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=ff Driver=option I: If#=0x6 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) Signed-off-by: Aleksander Morgado Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/option.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -197,6 +197,7 @@ static void option_instat_callback(struc #define DELL_PRODUCT_5804_MINICARD_ATT 0x819b /* Novatel E371 */ #define DELL_PRODUCT_5821E 0x81d7 +#define DELL_PRODUCT_5821E_ESIM 0x81e0 #define KYOCERA_VENDOR_ID 0x0c88 #define KYOCERA_PRODUCT_KPC650 0x17da @@ -1044,6 +1045,8 @@ static const struct usb_device_id option { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5804_MINICARD_ATT, 0xff, 0xff, 0xff) }, { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5821E), .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, + { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5821E_ESIM), + .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_E100A) }, /* ADU-E100, ADU-310 */ { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_500A) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_620UW) },