Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1775597pxp; Mon, 7 Mar 2022 02:02:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiHyBROKEO/hRq+HVdmNX4+i6jLyKkKfXfAoAXUnx32N4yLeXToZmEOd9vDaIPFKerV+7D X-Received: by 2002:a63:88c6:0:b0:37c:4e10:1a1f with SMTP id l189-20020a6388c6000000b0037c4e101a1fmr9367916pgd.162.1646647363984; Mon, 07 Mar 2022 02:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647363; cv=none; d=google.com; s=arc-20160816; b=iz3Y/oex6k0Ab8/fwmHwPX4oHlKp4GjdNVDLYrQZT4ea3p1BXHSaEqMwQ+XLy6DYqS KZBvH9VaiOWwEAcmJyA2oynt8q4Xzf1mkIlRrFzKNmVUSfFiyaabwK9ZDiGk90OJb46z xafIkAf+iE+Ak0Ue3vDhevRinWaOXGjVB+uqsCBc3ESOm5nm9oLTPxCi7k7u2bXzkzJS nMfoXsT4jiqQgVh4PUVJXuq2eBMw+lhGu7nxtz9ITm140j7sM+VN0c857kaZoMn1GaJn RvbFd5nSsqxRvoPdaOzHg/Si2whLkGP46AD6JASn6suDElpl5XEArPypilCp7UrMVVWn rSqA== 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=rM19ihG0k4CWx0GU4ttG0XayZo5/PM8b/hCEotLsN5o=; b=h1D19D2H+1mYmbMzju81FjG1l7JvsUigGAqn/oMdSJTIvS/h6MmkiiPqGIbC9sY/Lr 0F7voqCRZHdZOd6YmFVncpwjYr++GqC0gIvo7VaOpVEnkxBbzOHlDPiTD/tTBARQxkXf vy0vEllxPv42s3SYw5fwR1mtMQa5nmbiaHOeRMxjvtEZySb3V+ZVCwrC8TGbFWVwxlon eH+u5/tQIsApV7migqbJqaCXFO60O5F9xMcelNxihWlf+ZFS/4vMrBj7Zw8QfeaJpnag Ar1VuCt6yVC2QIZX8PToz463E3IhA956s0HelzWu7N3ksL+MjTjy/IYzJYXeGmOuWqxg iirw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YRktDqWT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020aa78882000000b004e1042bf8b5si12815355pfe.357.2022.03.07.02.02.29; Mon, 07 Mar 2022 02:02:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YRktDqWT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236684AbiCGJYe (ORCPT + 99 others); Mon, 7 Mar 2022 04:24:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236599AbiCGJWf (ORCPT ); Mon, 7 Mar 2022 04:22:35 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7385866C95; Mon, 7 Mar 2022 01:20:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1C0DBB810B2; Mon, 7 Mar 2022 09:20:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B446C340E9; Mon, 7 Mar 2022 09:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646644843; bh=qQGPmeaAYFXyIjtv0HVDAMGkMn9oVjkstYLU3NOcbuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YRktDqWTx/ki93fL+PpDRNIMdeM3M/oIV9hq1XTsH4RpqIs9R4U1hqkM9S/KIy8// FJdPoUgtStFo9AfJ4LIExOWayXp5gb2vlg/G7FsHowbS+CoStrqP8whnOle51NX8xB WxrO4m2OXF59FseocAKylroXk142cjJlSV+x4VUs= 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.9 08/32] net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990 Date: Mon, 7 Mar 2022 10:18:34 +0100 Message-Id: <20220307091634.680134851@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091634.434478485@linuxfoundation.org> References: <20220307091634.434478485@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniele Palmas [ Upstream commit 21e8a96377e6b6debae42164605bf9dcbe5720c5 ] Add quirk CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE for Telit FN990 0x1071 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 d86132d41416d..95256765b3887 100644 --- a/drivers/net/usb/cdc_mbim.c +++ b/drivers/net/usb/cdc_mbim.c @@ -652,6 +652,11 @@ static const struct usb_device_id mbim_devs[] = { .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle, }, + /* Telit FN990 */ + { USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x1071, 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.34.1