Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353644pxb; Mon, 20 Sep 2021 19:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhP4ZKbaFQN3/Z59hiekGUCcoBTCF17xIaNeJXDg9uLUyS1oSl4PSUWxJjfff1dqznOwG0 X-Received: by 2002:a05:6e02:1c8a:: with SMTP id w10mr6879338ill.192.1632192732699; Mon, 20 Sep 2021 19:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192732; cv=none; d=google.com; s=arc-20160816; b=cXGUktREfHhE8YEjq0dpLwrJ+sIppaBMRyPu4KeuW+EP2MzD5BULh6hi9VUNtoKQlL xn/NMwKYszRY/j71DwnwXhvuPok0/IUkVh9duhTsRPJw7bvZ7mhhpIOTeAHnliH7t/+t dF9KLPjlaosZowiIinLmD+1v0HtFP+m5FCj+I5Csp1cC2wLc0yQSwCnDbqbXRqFK9A9a tuePmxaMrKXLK+s8zjUkHgNS5xin5IHfP/ZlYb/nxg+X65XBzuUzhiqe9VQNOWUMQd5r yupjfx30NQUaywddJ0PDiSrdeFyagSMiOGliSnHHmSbiVU6XvHJBJfMMOgF2pZecZrsd 1MZw== 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=3qAl2uM22qg5oDyZv4Qx2ugguq69sGSd9sOyAPZ6u1U=; b=Al9/JGy5W8mf4L+u0YxcNtwXOGQBbDO63IOzYnDcV4Es2ldXP7N47aSf4uZV8WSxm9 9RHdPeiagE6dgAWTDJfb45fXlT5/WfElJwB0JYKL42I0R54o/kNhtnjpiEc2ak885oTj ueTO8hYClm7ufmwFMZMqMa+8u9yrdTQqFtIJ1OAiO2+QR0NxTqp6ubfO1ZumDb++b/bo OeinU//gtD+0yaAMKbB5WkSVOTQdBW+ruY7ML/VOHU7cvZ0QfzDMAJrtsp7Od8L2zm9F jc9JU1qWjQ6PiYf8KuaWJBsO/5RV+GVbCFl1qCZejU54w4tVcdR/e0PmFchwu0JFReoO ZBRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PX21X4DD; 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 g1si14028963jab.92.2021.09.20.19.52.01; Mon, 20 Sep 2021 19:52:12 -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=PX21X4DD; 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 S1354768AbhITSsR (ORCPT + 99 others); Mon, 20 Sep 2021 14:48:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:56474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383437AbhITSoc (ORCPT ); Mon, 20 Sep 2021 14:44:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8877A63357; Mon, 20 Sep 2021 17:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159177; bh=2+f0q9COo9y3qm6fO0LOOCVmBLhraM8f7noOmNchM60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PX21X4DDO3w7ImVvm8FoBDlJtV4N77C1Ne3zzRLIzy40aS96Yl09VW9qyCvAtLSsv YKXFfvWP24auoeGHKIvjgprCz+1z32oUW4JylU1JCk02ofceS1t0n4o0Whhcpa8Q9h eoUv6vFR00Z3HUaYUiygN+Oo7koBzPU0HZuA56Ps= 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.14 112/168] net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920 Date: Mon, 20 Sep 2021 18:44:10 +0200 Message-Id: <20210920163925.320031775@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@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 4c4ab7b38d78..82bb5ed94c48 100644 --- a/drivers/net/usb/cdc_mbim.c +++ b/drivers/net/usb/cdc_mbim.c @@ -654,6 +654,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