Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3859637imu; Mon, 7 Jan 2019 10:46:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Q6pwyWCKBFWn13Kvi8RD6I6c8IREZs6PzbD3bbtyad5JXwd/fLZDWojn28oIByqnxrLrW X-Received: by 2002:a17:902:6b49:: with SMTP id g9mr61067354plt.98.1546886814680; Mon, 07 Jan 2019 10:46:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546886814; cv=none; d=google.com; s=arc-20160816; b=ZzWLHuMIT0Q+buS7ZdpwE412aEtFRBFKEB48ctcuDu8Ogvj7DPmPRBfUVwVEqOpUDt dIu1eYi2MqO4nud43lT3nn4LRkA0q+p0R8jGNhrvSOoG9LYt8Z+e2hNqgdVyg8V5f1n9 LWgGoTr1UAGLGN9gjvaesi7Co1mrSuhxLHgkGS3TzoFWCtIxVUlRorRWYc0sFlg/18LV w3V7Z82AmVfC2ZOd9v7FxF4iiT6alEK34Fav0qBAYTVbMQZAd4HYZvpdP1GRlbhRTI+K +251gaJzf3PEVVLsWvoSmHCHzO6WUqqj4DlKJtttAmo4ZgC1NQz+9osoSdJ+/hHBXUv7 HL/A== 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=5FJUK0hs8w/85puzbZSNz27zLQBhJoFC1dBpvEfTyUY=; b=Zyzaabm9ZqoUU+xMMo5EOhGwZbQeKQnGIcecCYGR5Jki2hICmwStrXfx9LBhsCSicS q/TP2zsBfd1mzjUBcyvBb8lSkB/+iH3vsAwc3DaFCm8wlUuf2yCyAA14IUxJO4mN56u8 PtVnBevMARk57jrZLYYSEb9ggbuul4Upts2M40UBJG/vuiHbT8X6sYodkhO/2o0/Qn0c fJcJlbbTntXP/AtEkDvMW0b7D0FuDefWxkE7tSSjYGf6pQdXm7nyeZ+Z/UT2yWD21S2y dzdFlGzSsu2Ou4QE1lAkieRGEIl98oYDiZGi/yiFuDR/UXYfIZQ1ZtYB+0+R8bvZR0iV muYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hiwoWDej; 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 s38si579321pga.38.2019.01.07.10.46.39; Mon, 07 Jan 2019 10:46:54 -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=hiwoWDej; 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 S1731115AbfAGNPR (ORCPT + 99 others); Mon, 7 Jan 2019 08:15:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:49424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730714AbfAGNCB (ORCPT ); Mon, 7 Jan 2019 08:02:01 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 29E7E206BB; Mon, 7 Jan 2019 13:02:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546866120; bh=wnX4O+ElyuOy1hyN/XYyEF910kwjU4+bzWmgg3X7BzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hiwoWDejydC2nVZfQLcC3RLX0DwL5Ahqx53ouTdK5RdODb2Fl1qoTYUJTBB1amLig Ul3vz3t6bgpWlH7wkEyNizcdyqTE2gOKtqhKa2zhue0I3eIt/a5WARInxI/e3SQkto 5DFLN7nKs9B1y95zlzODnDAa1RzRaUUFJaMKRzjA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Sjoholm , Reinhard Speyerer , =?UTF-8?q?Bj=C3=B8rn=20Mork?= , "David S. Miller" Subject: [PATCH 4.14 053/101] qmi_wwan: apply SET_DTR quirk to the SIMCOM shared device ID Date: Mon, 7 Jan 2019 13:32:41 +0100 Message-Id: <20190107105335.821033866@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107105330.372621917@linuxfoundation.org> References: <20190107105330.372621917@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bjørn Mork commit 102cd909635612c0be784a519651954a7924c786 upstream. SIMCOM are reusing a single device ID for many (all of their?) different modems, based on different chipsets and firmwares. Newer Qualcomm chipset generations require setting DTR to wake the QMI function. The SIM7600E modem is using such a chipset, making it fail to work with this driver despite the device ID match. Fix by unconditionally enabling the SET_DTR quirk for all SIMCOM modems using this specific device ID. This is similar to what we already have done for another case of device IDs recycled over multiple chipset generations: 14cf4a771b30 ("drivers: net: usb: qmi_wwan: add QMI_QUIRK_SET_DTR for Telit PID 0x1201") Initial testing on an older SIM7100 modem shows no immediate side effects. Reported-by: Sebastian Sjoholm Cc: Reinhard Speyerer Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/qmi_wwan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -1252,7 +1252,7 @@ static const struct usb_device_id produc {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 */ - {QMI_FIXED_INTF(0x1e0e, 0x9001, 5)}, /* SIMCom 7230E */ + {QMI_QUIRK_SET_DTR(0x1e0e, 0x9001, 5)}, /* SIMCom 7100E, 7230E, 7600E ++ */ {QMI_QUIRK_SET_DTR(0x2c7c, 0x0125, 4)}, /* Quectel EC25, EC20 R2.0 Mini PCIe */ {QMI_QUIRK_SET_DTR(0x2c7c, 0x0121, 4)}, /* Quectel EC21 Mini PCIe */ {QMI_QUIRK_SET_DTR(0x2c7c, 0x0191, 4)}, /* Quectel EG91 */