Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1769248imm; Thu, 27 Sep 2018 02:08:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV619+Ybp7ErBKXYMGAAjtNd1gPm2XTVcQ78O0Yc6tWzFXfE/Cv67dSdV0yuzogEzacY3o4ik X-Received: by 2002:a63:9c01:: with SMTP id f1-v6mr8564984pge.156.1538039309048; Thu, 27 Sep 2018 02:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538039309; cv=none; d=google.com; s=arc-20160816; b=I2Y8/o3dMBaQiBseCDMUCs4894YZ3xgHpXNqMD0573bhIkR2LPYllwYiPeIjsQZy4F KXj1AnVcHUkcWmbHLXJCIM1mbZn+I6hHCqhwQiTRYEFtTQw4axKMZUBJTUYNCMWQlQAQ S38ZqyVbgCUWGZMfNbXCBw+kFPOx+FZvgTzmndNVfXpvyuy4U/GptafLoyN0iNYY+/3S ZJ02GlIKdCVZGx0cPs/I57+2hkp04ZjA07EOcw4lb4KLBspc1EexglGC5m9KVMrxUm+R kqVO3CxGEcGvpNkT3etU74YtEuM+jBydC2QJ4YBGuX+8VIKRJvm4qTTyuIogm76IWNMe 3AuQ== 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; bh=srFjVOcz0G8lPaPcI+oWpw8OXdLt6ADAfVI7A34Bfw4=; b=kCb/scFLoYSPerXpy44lCMLOnapMcWqChGwHPI/wF/B9t34v2E435fy4EhnzwEmTIC WYqAZWFcFQTz0LEdeWxl54c69ZopcwB0SP3yUTMVeMh0vdesZ3MlG2IGjv2ds5EugRPI xy0+cuCSi92mAMda9ndwmdSjNvK3qAnFfWEClbLEwIzU8y6jyywTqexXsOTzmcv75PpP juzVDYXQrjwMwjPLA17edPXg/BEX7KB2kI4y2OcqZW/BQGHalZKstAwqGLks/JdeeNqL kzxBPHOXVGKBxTJDN+uKitSL1MyVJa8fPzTZWQJajc6z9RSze9MmO5IP4iRMHxY3JrgV 60Cw== ARC-Authentication-Results: i=1; mx.google.com; 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 y21-v6si1404312pll.416.2018.09.27.02.08.14; Thu, 27 Sep 2018 02:08:29 -0700 (PDT) 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; 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 S1727552AbeI0PYr (ORCPT + 99 others); Thu, 27 Sep 2018 11:24:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54848 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727483AbeI0PYp (ORCPT ); Thu, 27 Sep 2018 11:24:45 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3CF0E10A4; Thu, 27 Sep 2018 09:07:29 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fred Veldini , Deshu Wen , =?UTF-8?q?Bj=C3=B8rn=20Mork?= , "David S. Miller" Subject: [PATCH 4.18 06/88] qmi_wwan: set DTR for modems in forced USB2 mode Date: Thu, 27 Sep 2018 11:02:47 +0200 Message-Id: <20180927090301.334673368@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180927090300.631426620@linuxfoundation.org> References: <20180927090300.631426620@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: "Bj?rn Mork" [ Upstream commit 922005c7f50e7f4b2a6dbc182e9c575b4f92396b ] Recent firmware revisions have added the ability to force these modems to USB2 mode, hiding their SuperSpeed capabilities from the host. The driver has been using the SuperSpeed capability, as shown by the bcdUSB field of the device descriptor, to detect the need to enable the DTR quirk. This method fails when the modems are forced to USB2 mode by the modem firmware. Fix by unconditionally enabling the DTR quirk for the affected device IDs. Reported-by: Fred Veldini Reported-by: Deshu Wen Signed-off-by: Bjørn Mork Reported-by: Fred Veldini Reported-by: Deshu Wen Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/qmi_wwan.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -1206,13 +1206,13 @@ static const struct usb_device_id produc {QMI_FIXED_INTF(0x1199, 0x9061, 8)}, /* Sierra Wireless Modem */ {QMI_FIXED_INTF(0x1199, 0x9063, 8)}, /* Sierra Wireless EM7305 */ {QMI_FIXED_INTF(0x1199, 0x9063, 10)}, /* Sierra Wireless EM7305 */ - {QMI_FIXED_INTF(0x1199, 0x9071, 8)}, /* Sierra Wireless MC74xx */ - {QMI_FIXED_INTF(0x1199, 0x9071, 10)}, /* Sierra Wireless MC74xx */ - {QMI_FIXED_INTF(0x1199, 0x9079, 8)}, /* Sierra Wireless EM74xx */ - {QMI_FIXED_INTF(0x1199, 0x9079, 10)}, /* Sierra Wireless EM74xx */ - {QMI_FIXED_INTF(0x1199, 0x907b, 8)}, /* Sierra Wireless EM74xx */ - {QMI_FIXED_INTF(0x1199, 0x907b, 10)}, /* Sierra Wireless EM74xx */ - {QMI_FIXED_INTF(0x1199, 0x9091, 8)}, /* Sierra Wireless EM7565 */ + {QMI_QUIRK_SET_DTR(0x1199, 0x9071, 8)}, /* Sierra Wireless MC74xx */ + {QMI_QUIRK_SET_DTR(0x1199, 0x9071, 10)},/* Sierra Wireless MC74xx */ + {QMI_QUIRK_SET_DTR(0x1199, 0x9079, 8)}, /* Sierra Wireless EM74xx */ + {QMI_QUIRK_SET_DTR(0x1199, 0x9079, 10)},/* Sierra Wireless EM74xx */ + {QMI_QUIRK_SET_DTR(0x1199, 0x907b, 8)}, /* Sierra Wireless EM74xx */ + {QMI_QUIRK_SET_DTR(0x1199, 0x907b, 10)},/* Sierra Wireless EM74xx */ + {QMI_QUIRK_SET_DTR(0x1199, 0x9091, 8)}, /* Sierra Wireless EM7565 */ {QMI_FIXED_INTF(0x1bbb, 0x011e, 4)}, /* Telekom Speedstick LTE II (Alcatel One Touch L100V LTE) */ {QMI_FIXED_INTF(0x1bbb, 0x0203, 2)}, /* Alcatel L800MA */ {QMI_FIXED_INTF(0x2357, 0x0201, 4)}, /* TP-LINK HSUPA Modem MA180 */