From patchwork Mon Jul 23 23:31:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aleksander Morgado X-Patchwork-Id: 10541273 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 408BB184F for ; Mon, 23 Jul 2018 23:31:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2449028581 for ; Mon, 23 Jul 2018 23:31:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1540528591; Mon, 23 Jul 2018 23:31:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE5B528581 for ; Mon, 23 Jul 2018 23:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388233AbeGXAer (ORCPT ); Mon, 23 Jul 2018 20:34:47 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46634 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388130AbeGXAer (ORCPT ); Mon, 23 Jul 2018 20:34:47 -0400 Received: by mail-wr1-f67.google.com with SMTP id h14-v6so2257863wrw.13 for ; Mon, 23 Jul 2018 16:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleksander-es.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=nHEC8ToaXOYToG2kE7rSC6eDh9R5fXGruYW6dROQNfM=; b=b9i+TGBHevdSbJuqo6cSbRlE0cNZEMj4szaMNjocVIvxJQ1RBy3nwTMvPRhwa2E+aS XOtKcLmAXrf37ySBMRWecsHoiyjjqf13L3KL/vYg/3eWbiU7Et8R1N5ZMAaYJNbUhvr7 sb/RcIEimOk0/2X75lNjGv9YV6O8WM6SPnFXzg1/3FarAq+my/1nvum8gcCyq9u3DOoM A56Lw6wzpqOXg4oO5LTu1Wi+jmmkgavRa18ajLC2Wz9qTEn1hq0y1NETcBgn5YK+3CB7 hZBtirOENOCrVL3i1rXaIJ+MkKXxOZkhdthXA8mzMeb0SUtyrLaZeN97kuHM53cPtBIE SHQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nHEC8ToaXOYToG2kE7rSC6eDh9R5fXGruYW6dROQNfM=; b=g759F6/c0TsyZ7Mxbvyw9ziWtP+qjW4DLEIHW+IBjtkcX/hib9qo5xiyldi5WpgeFH IKvCrRy7FQxRCvM6WtzZtEWKKlTSjknx7XzIAmX8LeqENdMwom6bs+zU+3eqtVD4Rhyt svbEFlY1LMmhi2U31OmbVL2grxGdehAHNnQZ3qwu/uAmhgOnXBoI7FRyiXXgRBfZRo9M xpjEBa8Z0h+24pmObpHW9qG+aPQSRN1rL2cGjbhQFwGtHM79cVjFxAsckiuM1pC4/bBw yONhNAF1WmpYmfB7swyAdbE6QUUeMp9BYeWkT40tsu4BNdzmRgMVNTtlK3jsahXLt57D EtFw== X-Gm-Message-State: AOUpUlGXtwNnvnHC/5FmAPWNBRzLi7FRLdUvGXSA4zXBr4Q4bDtE6Du4 dwNpmeLCU6XbwO+lUzScKB3Dvg== X-Google-Smtp-Source: AAOMgpdJueN0ijTv50KkQvipFd5KRhQskZ7Dm8+26STeXPrYwENaozdJVyyzAC7cYSvrPH00b9M8Rg== X-Received: by 2002:a5d:4007:: with SMTP id n7-v6mr10254870wrp.258.1532388671877; Mon, 23 Jul 2018 16:31:11 -0700 (PDT) Received: from ares.nextev.lab (45.red-83-42-38.dynamicip.rima-tde.net. [83.42.38.45]) by smtp.gmail.com with ESMTPSA id c15-v6sm102983wmb.2.2018.07.23.16.31.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jul 2018 16:31:11 -0700 (PDT) From: Aleksander Morgado To: bjorn@mork.no Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-usb@vger.kernel.org, Aleksander Morgado , stable Subject: [PATCH] qmi_wwan: fix interface number for DW5821e production firmware Date: Tue, 24 Jul 2018 01:31:07 +0200 Message-Id: <20180723233107.15268-1-aleksander@aleksander.es> X-Mailer: git-send-email 2.18.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The original mapping for the DW5821e was done using a development version of the firmware. Confirmed with the vendor that the final USB layout ends up exposing the QMI control/data ports in USB config #1, interface #0, not in interface #1 (which is now a HID interface). 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 Fixes: e7e197edd09c25 ("qmi_wwan: add support for the Dell Wireless 5821e module") Signed-off-by: Aleksander Morgado Cc: stable Acked-by: Bjørn Mork --- drivers/net/usb/qmi_wwan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 8fac8e132c5b..0ed06d670a5f 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -1246,7 +1246,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x413c, 0x81b3, 8)}, /* Dell Wireless 5809e Gobi(TM) 4G LTE Mobile Broadband Card (rev3) */ {QMI_FIXED_INTF(0x413c, 0x81b6, 8)}, /* Dell Wireless 5811e */ {QMI_FIXED_INTF(0x413c, 0x81b6, 10)}, /* Dell Wireless 5811e */ - {QMI_FIXED_INTF(0x413c, 0x81d7, 1)}, /* Dell Wireless 5821e */ + {QMI_FIXED_INTF(0x413c, 0x81d7, 0)}, /* Dell Wireless 5821e */ {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 */ {QMI_FIXED_INTF(0x22de, 0x9061, 3)}, /* WeTelecom WPD-600N */