Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1775735pxp; Mon, 7 Mar 2022 02:02:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkYwdyYFZ4DaFKKh8ssK4xR/0LM8IyDjifxJET+wdO3PxYCXO0aUBCLBTR2RnCnn49oUMk X-Received: by 2002:aa7:cc02:0:b0:411:487e:36fe with SMTP id q2-20020aa7cc02000000b00411487e36femr10291484edt.338.1646647372896; Mon, 07 Mar 2022 02:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647372; cv=none; d=google.com; s=arc-20160816; b=M3W++PP0nYaKrKF5v462/aSBEA7/PLs7Xs0vQi5op+HzWFdq6E8Ok40RgpgCWgcSd4 325EWlVrY2JKNnSWMdXkm7IdF20zBFttBQr6mSXP0eL/9oNldhSwW6zix6nM46RBTsXa sMJFPOpSEVxrDpe700U85RhQisaY3axSLjTySk6ZpKLmSFZLvgIvIAOHfHgXaUIsXton SX+aDYAPNmFJTAEvhG45a5pt0D+juSBfTeQXfF0rq4dHVZM0+3BxQ0klQj8zedwQJvHA p/rG3SQoYMW2JoTC1BM4n8Mj0vIaUIhU4Llh1vHoMf+bFotVXRmjExIPj/f0dsXaAJOE Q6FA== 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=Iwp/cUGIxw5IR5yjgoISzwnssRjeGr1pKWgB/gZGFb4=; b=FXMvesPvvLMjiK9s7lJ54GmXUw8Qf02ExLf1K+3/jBo7rDzZXPcLpqD4UuWtIp1FRN 6EphEvnVVlRIfc5WxGbr7jS+bZAojU6LVa+oXR2ZLlEm7kfdaAu+BNU7apGc7VGsV4qk CR/zpXap7MYcY8neDexYPmFCKnKY3IXjobvfm2ZODyuCNYj0TKSBINNUw3DymT/yYB7r jq/Bm/Iy/SkaetXjH40eIZhcrqk2eVlgwo5LsTFg4iNkBfb8ahBxqft8HdGV3qT/Xxp7 6zvfGMGvfW5qJaPzT2xLRDU98Cpf1QG5RTOPJq05uTZw1X7/FtTnP21+DXrMjvKS5DSd Qd7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pAjnhV4e; 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 b19-20020a056402279300b004164ab2a7f0si1534351ede.548.2022.03.07.02.02.30; Mon, 07 Mar 2022 02:02:52 -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=pAjnhV4e; 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 S236813AbiCGJZN (ORCPT + 99 others); Mon, 7 Mar 2022 04:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237271AbiCGJXi (ORCPT ); Mon, 7 Mar 2022 04:23:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E489541AA; Mon, 7 Mar 2022 01:22:17 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AE31761027; Mon, 7 Mar 2022 09:22:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDF13C340F4; Mon, 7 Mar 2022 09:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646644936; bh=VKj7xlrRFbcxioWHBRFh2u0Z7Dc86o9b0hoFi2dJGaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pAjnhV4eIOiOt3IQtWfq49BPuSdkOT1RwCfJHcjGjOpKYldtlSzXybwGhNNDmkn1j rMjzXUWrT42lKvM4wxMPS7gET1SPUlzQsVcUEevQX8TVrVgibFizCiwZJAjLVhbtmA MlWmJy+kwDmW+0snbQIbM4tTRoINoo9DdBFUaC/o= 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.14 09/42] net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990 Date: Mon, 7 Mar 2022 10:18:43 +0100 Message-Id: <20220307091636.422467160@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091636.146155347@linuxfoundation.org> References: <20220307091636.146155347@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 cdd1b193fd4fe..41bac861ca99d 100644 --- a/drivers/net/usb/cdc_mbim.c +++ b/drivers/net/usb/cdc_mbim.c @@ -660,6 +660,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