Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2350918pxb; Mon, 20 Sep 2021 19:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIa6Q0Snxr1//TflbiOp+9Fy5xU6SBW2V+cftUHMNl9Au109jZwf60s1mJa5EQNV9yEhk7 X-Received: by 2002:aa7:d6c7:: with SMTP id x7mr33376281edr.180.1632192385951; Mon, 20 Sep 2021 19:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192385; cv=none; d=google.com; s=arc-20160816; b=E4EGa7GVPjoge5xv41aL7UrDsmABXuWfpO7LD8//8YIEUlqGNreu09wz47nJO7HuWg kksktEEa9/llGUc3NTCVe13/ZAz5wZM8hin6iS2f2LBoGLZSsj8I8TcPEgXj6zuxAACS fDbDfRbBsCNl47CnswJN2D87tAJysB7yA3dTYpTk4JYvtYJ8Ke4VPNqoJOOrDSJ7ndDd 9uuT1HCFbe5un1P7aCgbLiEau9wJM2e3yA30fJgIet2ZI8gMMj2NZgrkKDE4wOt0VrWY kIDf9453/euEeocqS/9xdtQb4NSupKewMx3xJR1T6EBrSPJTQcB3l57q5NBBMSEEL0Fw Mhmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=O+g7AY6jFZ+L8txymQ05gH2MhLKD3DPezMzox/UMXWc=; b=ezYjfMWh74hfSuAkoOr9w6fcOdp+Esrsf2hcuUidhvNqV8Hngyuh00iac1vszCzAI9 6dTo+MWzl+5wlAHfOuvVeX96Sd7Tcj6ve5eghGIOKuZDjRuDfuqVH7OL9VCEJV5NWz7t zhxPKUSvXJxyFa4H0CJDV9nMkPFnUSP0qGOaOP/XuXSny1V6KatyiKJ3veaujkHnwLPz 8YX3Kw1xIX4kEPGG0Z0oacqgr11gk9DeaZqCRKmY1hZbLKvkbtnEQGGbivcGo2D2Xo11 Vw+jFkZ8eKWMK1LHoj5eiJpvZ1QBeXc0WCavXpG8E7E6gLUvbgMFPd+iMblNLOXPf4e3 gQFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r4jDBnqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm20si16366892edb.296.2021.09.20.19.46.02; Mon, 20 Sep 2021 19:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r4jDBnqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348400AbhITS1P (ORCPT + 99 others); Mon, 20 Sep 2021 14:27:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:43192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377715AbhITSUZ (ORCPT ); Mon, 20 Sep 2021 14:20:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 76F5B632A9; Mon, 20 Sep 2021 17:23:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158623; bh=ukr0NSEzMx/uOpOw9SiAfR/sjNSlvcmbajk1369DDW4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r4jDBnqaui6SjIL/go9q3DkUIFfGiZS+gKoz6RYtomeL+s1XBnguwHB8BveX2pCEX KwolA4yp1oaPCa6uliB9QrLnMFuoK8cXmaZYlFFNDl7CeYYiK3oz+W3+kpkIr6yzVA KWaGYwMFdNtPksNPJpJkTC7HNCTkf1MS0Xbz4yjw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniele Palmas , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 241/260] net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920 Date: Mon, 20 Sep 2021 18:44:19 +0200 Message-Id: <20210920163939.316558888@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniele Palmas [ Upstream commit aabbdc67f3485b5db27ab4eba01e5fbf1ffea62c ] Add quirk CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE for Telit LN920 0x1061 composition in order to avoid bind error. Signed-off-by: Daniele Palmas Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/cdc_mbim.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/usb/cdc_mbim.c b/drivers/net/usb/cdc_mbim.c index eb100eb33de3..77ac5a721e7b 100644 --- a/drivers/net/usb/cdc_mbim.c +++ b/drivers/net/usb/cdc_mbim.c @@ -653,6 +653,11 @@ static const struct usb_device_id mbim_devs[] = { .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle, }, + /* Telit LN920 */ + { USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x1061, USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE), + .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle, + }, + /* default entry */ { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE), .driver_info = (unsigned long)&cdc_mbim_info_zlp, -- 2.30.2