Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2564552lkm; Mon, 20 Sep 2021 18:50:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9t+Mv5o1fpExhW+NE6d88phGfzUFCgxGjTzTPcPr4iFl4HMCDwioN/brj01zCOBHuKEyj X-Received: by 2002:a5d:80cc:: with SMTP id h12mr7779878ior.57.1632189021551; Mon, 20 Sep 2021 18:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189021; cv=none; d=google.com; s=arc-20160816; b=Dw+Zuo3L+j3luDtgE6btSPokXJUEzOnoGfMP9XXHGg9P0t4zA1VffhCOXQuW4pOrfL BwcfVzXvLM2DhSn75Oj6vjNqtvgkRfVW6OcF4c6f3DfGuaZSxnnF46l0VDlWu8Ga5zJc 9xN8ykaX8BckRFjWVDeFU7OVwOAg5cGdQUAdqwEtinTjepdHOFpmRgBpCb+WGmx+1xtN mlcee6B1OpFEl53RlZwFsLgKyJ7GNYzg3oQHkCe7irytTyYcYGcTShXuyrixPYsm08kR 9CHlHCPDylv/mm84Q38I9THPLy1/W5N/aH83xCn56NyWEZx4yUTaSY0sq/9Sv91Lg7eL sS3A== 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=X7fCKBM0i+0sM8fNVsD06b6Xaa7Zyqb2eJxQzQUQCUw=; b=St0cDjs9E8+x6ggGR0ZmUiuDFAnakyeOAaxHKA9WEZygEKBi2S7Lj4arXi9PTFcatL VBrIZYQq1jf3n3MppNLAME6uSBljYCuyKfxQKDnk99ZB0AzbmZL3a7urP1zNuO9VCsWD 81CIZJAZ6R4TawZxXAyo2QkE+9seS9/HrbdzgCRMUK9cDGKkfdA8HXH8pfzzSdjkzYRa d5mkaos3H6oR/TQdaGVcK+kCuTR+7awyCLLSBXegRa7mpiOpINc+Sjt6Uvlu1zL8CT4B WAv2LHVd536mLI30clMRXgEi53+M8EAF9nkPUxGq0M+/GbzoND8ug4G8T81LmK+/cILH ImIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CJ6HQh0t; 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 s124si13365522jaa.47.2021.09.20.18.50.10; Mon, 20 Sep 2021 18:50:21 -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=CJ6HQh0t; 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 S1358013AbhITSFT (ORCPT + 99 others); Mon, 20 Sep 2021 14:05:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:57654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355972AbhITR5z (ORCPT ); Mon, 20 Sep 2021 13:57:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF24363212; Mon, 20 Sep 2021 17:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158097; bh=hy3UwUA+8vvNry4bzehpyJHT56yOSvMuXzICl7nOmF8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CJ6HQh0t8PolrwzOBkhMj5WheYSjt4rS8zuKohVFpcwIS6pdHzkdQ9s93wRATFwOr lQG/Su5Hf2Gos33xuIvJOobTXPa3SRlw51PwarryIYV5D2fr437BkuUjBQWbBN9K+z 0BW4FLrwrvObKhGWJ552iHWRjVpPI/xakf3Wofxs= 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 4.19 278/293] net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920 Date: Mon, 20 Sep 2021 18:44:00 +0200 Message-Id: <20210920163942.931722571@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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 0362acd5cdca..cdd1b193fd4f 100644 --- a/drivers/net/usb/cdc_mbim.c +++ b/drivers/net/usb/cdc_mbim.c @@ -655,6 +655,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