Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3967512pjo; Tue, 3 Mar 2020 10:14:36 -0800 (PST) X-Google-Smtp-Source: ADFU+vtRHwb7CkcakQO97GHLMzk3J8giU72vFFWZi69kgdvxGOnI6HYrNu75imuruNVqzL2DKCZS X-Received: by 2002:aca:fcd8:: with SMTP id a207mr3453285oii.56.1583259276185; Tue, 03 Mar 2020 10:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583259276; cv=none; d=google.com; s=arc-20160816; b=ZDKMdcGsSG9XQBX89tux/534MUtPhIRed3OZKIQ67ZaeoCnYk3I3MwgdJjyB0XrhD5 7/SGuS1LYe8vZMZCku6j9rOfYWxa4W3SMa7atAOlm8+WEyMpA7ILrhq2N2A84OxkMIBx wVTi5zqms8QiL8hRPcKPzQYtkDurDX/gPxZ/ia/GiwlxKsMTGT0Zb0FWlnNP1011hVgJ Hz4WJkjhqy6+FyVj35l6yIvifuOcz20pkIJ11uoBbIj+NbpBEAY8lBxYRXEsAp5OhGoQ jQNihJtb/LflbyoIKb8bFtmva/sFQ0paTZIV4LVXO49dNKRlwX68QHj7zdJu8yYfmGXi zhcA== 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=IFbBTZFt1plb/Jd4iBlRUhtt9Npbt4HgVTpYbJP9GyI=; b=0APAp5EKe+UB2TrsoIL4CBMHk0JG+By7CG1Nwc75Fm+hN8lG2Yq5cl+K6EpDYzgSfW zVsb+IMPLMB9eFOkWgvHVBlvEz3FNbNOc+USsRBv1WzBx/Dh8jMFRcha2rrOQDqvzvE6 NulYZxPOsT9b1t704yFzWz9ThAfO3KXlxGPn9SlWrcuYEZBB6v/Rnt76vW+sNBjNm3Ot 9khvWCwFocXFI6jYaUyCDCJ4cD+oUiL4HVh7Z85thK6CH8ZN0fYAg1Pb08vVGJlTuCIf 2vm54PRjzC9a6l15fnEhWmT8j64/DBXF1uJrENoEMWu19xOa0f1m+01ZNwWeASDozViF mLdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BO8Lr5lQ; 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 j36si8565085ota.58.2020.03.03.10.14.24; Tue, 03 Mar 2020 10:14:36 -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=BO8Lr5lQ; 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 S1731003AbgCCRpu (ORCPT + 99 others); Tue, 3 Mar 2020 12:45:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:52028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730992AbgCCRpr (ORCPT ); Tue, 3 Mar 2020 12:45:47 -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 2D9DD20842; Tue, 3 Mar 2020 17:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583257546; bh=OfcuyefYI3hSHKkMabhA0vDxDytTX9d3JOM+9rGO+fw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BO8Lr5lQceqnn8eRKzz5mvqY6oxfxx2wMnt/BfPjT47Zm4KLzhDzpWnBvMWTmE9mq ObSSfOlFDGds615DEEe8oBqZqNaN0hvNsvd9vSD6+JmULMcrcHiZCxodew9erurNuT 47SsppCz3blx0oXA4lErLHda3AjUMi6p42bfETqY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lars Melin , Aleksander Morgado , =?UTF-8?q?Bj=C3=B8rn=20Mork?= , "David S. Miller" , Sasha Levin Subject: [PATCH 5.5 035/176] qmi_wwan: re-add DW5821e pre-production variant Date: Tue, 3 Mar 2020 18:41:39 +0100 Message-Id: <20200303174308.568816404@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174304.593872177@linuxfoundation.org> References: <20200303174304.593872177@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: Bjørn Mork [ Upstream commit 88bf54603f6f2c137dfee1abf6436ceac3528d2d ] Commit f25e1392fdb5 removed the support for the pre-production variant of the Dell DW5821e to avoid probing another USB interface unnecessarily. However, the pre-production samples are found in the wild, and this lack of support is causing problems for users of such samples. It is therefore necessary to support both variants. Matching on both interfaces 0 and 1 is not expected to cause any problem with either variant, as only the QMI function will be probed successfully on either. Interface 1 will be rejected based on the HID class for the production variant: T: Bus=01 Lev=03 Prnt=04 Port=00 Cnt=01 Dev#= 16 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 2 P: Vendor=413c ProdID=81d7 Rev=03.18 S: Manufacturer=DELL S: Product=DW5821e Snapdragon X20 LTE S: SerialNumber=0123456789ABCDEF C: #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid 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 I: If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option And interface 0 will be rejected based on too few endpoints for the pre-production variant: T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=03 Dev#= 7 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 2 P: Vendor=413c ProdID=81d7 Rev= 3.18 S: Manufacturer=DELL S: Product=DW5821e Snapdragon X20 LTE 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= 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 Fixes: f25e1392fdb5 ("qmi_wwan: fix interface number for DW5821e production firmware") Link: https://whrl.pl/Rf0vNk Reported-by: Lars Melin Cc: Aleksander Morgado Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 9485c8d1de8a3..839cef720cf64 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -1363,6 +1363,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x413c, 0x81b6, 8)}, /* Dell Wireless 5811e */ {QMI_FIXED_INTF(0x413c, 0x81b6, 10)}, /* Dell Wireless 5811e */ {QMI_FIXED_INTF(0x413c, 0x81d7, 0)}, /* Dell Wireless 5821e */ + {QMI_FIXED_INTF(0x413c, 0x81d7, 1)}, /* Dell Wireless 5821e preproduction config */ {QMI_FIXED_INTF(0x413c, 0x81e0, 0)}, /* Dell Wireless 5821e with eSIM support*/ {QMI_FIXED_INTF(0x03f0, 0x4e1d, 8)}, /* HP lt4111 LTE/EV-DO/HSPA+ Gobi 4G Module */ {QMI_FIXED_INTF(0x03f0, 0x9d1d, 1)}, /* HP lt4120 Snapdragon X5 LTE */ -- 2.20.1