Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp162567pxm; Wed, 2 Mar 2022 12:32:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfVrn4EQ6A5P8EyhJcprbVfbN+udGRJb5wEE/gZEGFrGwLq4uKyLP1vXtjyPeATGTZFFg/ X-Received: by 2002:a17:907:7f1f:b0:6da:7d72:1352 with SMTP id qf31-20020a1709077f1f00b006da7d721352mr2090599ejc.225.1646253158246; Wed, 02 Mar 2022 12:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646253158; cv=none; d=google.com; s=arc-20160816; b=VFd1EV69DF5Y9vJsjqe1R1mFqZ1XWcAu0xrkt3yH/AU7VG4PKrZpf+Fd9ByJVTZcIg 4HzXyRYE66DXodIeSHyrhkwkuEMogTpSXYGqGZIGhiRtywPm5UsYKImau6mPE/t6/6/f i+4u9PdZiWgEBv21THC9V/ivz+CmDCuYyRFzp276co4LLfNrpqZWc4aKI2+8LvHU+fix 3ysWc9tAbRBupxEQz7MkJBEiTSDOLBiWDFtywy8DmWn/rZO6KSLB1l8Z/Wh7Enpheouy 4UwintF0RPuSv7xHAn1tfsu8OawJWihW6nPwAhg4Ss6ZNtGp814VE/OF4SwIw2L+S2NO 4iEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RMMqf9LQJWaptz0K/Gmd7Tj/qQkC6OYMvX3Op84BQbc=; b=kRyH/SMmquK2ZF8GzkyB9iwVHXx3zbSy2cbTh0yLcvgHopPQuXoKRdcPcyMA0yaSjo Fz/M7OPDRfaN6PU9D7uUy0yd0QkluZ6RYV9PyNd4iX/nh9GKUQWrIaMKSKnMpzQyzluS +/ofNkWdz7usWeyaSEnavXDMOfKN0/f4tr2gEsQ3WjMSUjljazlpo61ViF+a4N+ruQoD 57Je+gY6izPBKhsU69tYaV4cjQHi3Y8mKM4m3tdtpF4UIpCCuhjknUKHHhqN0KQ9okq9 fvO/KaOzkbA6GkqeI+gN3dg+glDwEo2f1bV5y1kgS5jzg3pylfX+yx5Rx7ZQ+n8YBw9u Aadg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rHLZI791; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ee43-20020a056402292b00b00413a9ac506asi7454edb.409.2022.03.02.12.32.14; Wed, 02 Mar 2022 12:32:38 -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=@linaro.org header.s=google header.b=rHLZI791; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238108AbiCBTTp (ORCPT + 99 others); Wed, 2 Mar 2022 14:19:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232644AbiCBTTo (ORCPT ); Wed, 2 Mar 2022 14:19:44 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E701D3EABD for ; Wed, 2 Mar 2022 11:18:59 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id bk29so4372686wrb.4 for ; Wed, 02 Mar 2022 11:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=RMMqf9LQJWaptz0K/Gmd7Tj/qQkC6OYMvX3Op84BQbc=; b=rHLZI791nYv+WOrg2nIm6efxe2ocFjX6a+gFNehTNnv22fed66UWWaOE9PSFzoPeKf 6wy1uGWP2CHDmrqJqWrd0Ugoeg74gI/KQacPvF8Atlg+Q4ppCdENUhyJTTtYBAqBhckt GGQ4o9pRYq76bUcaa5jrofxLvraa0I1hgdFCB43nhGELkfFzPPAZW+aT8YPJTX2/jJ6S EH8FKoQxSg1prOA/ChnHxK8OUiLpy6k+vjWpggLPpztMOIjdtZiUX0e1jx60xTZiiqX9 rOlVVOO25GgZ4yIY6Mojk7/PBX9EJyfcaSA6UNJThRhYStSek//CBTu0VN4EVN26YNfd ws7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RMMqf9LQJWaptz0K/Gmd7Tj/qQkC6OYMvX3Op84BQbc=; b=NLaR0foi96Cff9WpTGD4ZJcdCOxyAt77TN+ZBotOIiLVyJiW73fgThHNuAiTZ6vxtO Atu7lYz+Tvd3HhL9rTbVxWZsNIZs732Mrc/DS4bHkl+5A2mUKU7aa8SaeMunC/1h/ZbD 90x4nhRUhkyIiXQ4Y4xR+z5tm8N3gsO/KGLhZLy9jT4ZGDCwuyRh0AK7vvWwTF7j2rd5 L5exaVNs3gD+W5M7TNUU3K9FXQG6T2nD01Jlwhp1I6JB7z0KgtSStfwfotzuWiZcTjSP r6IRJP73YuJwotQbENfpGUTly2Ugxiadn17nhI74Hr3rIh7QtZByNEshxVmsVdqiIBjC FmGg== X-Gm-Message-State: AOAM5318gvoque1Bobg+aAFLQxtYT7Ffczgiw+ekDVICgsAEjTK49H0o mVrQ2vaaGMJaLIWFz3TCltA3nQ== X-Received: by 2002:a05:6000:1ace:b0:1e8:cbe4:9920 with SMTP id i14-20020a0560001ace00b001e8cbe49920mr24599046wry.121.1646248738466; Wed, 02 Mar 2022 11:18:58 -0800 (PST) Received: from [192.168.0.30] (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id h188-20020a1c21c5000000b00385699a8993sm2299258wmh.11.2022.03.02.11.18.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Mar 2022 11:18:58 -0800 (PST) Message-ID: <54a9ec41-300d-a0c7-eee1-9445ea200a5e@linaro.org> Date: Wed, 2 Mar 2022 19:18:57 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] bluetooth: hci_event: don't print an error on vendor events Content-Language: en-US To: Marcel Holtmann Cc: Johan Hedberg , Luiz Augusto von Dentz , "David S. Miller" , Jakub Kicinski , BlueZ , "open list:NETWORKING [GENERAL]" , LKML , linux-arm-msm@vger.kernel.org References: <20220302182352.441352-1-caleb.connolly@linaro.org> <0C35F358-3E66-457E-9080-DAE4EB10BF16@holtmann.org> From: Caleb Connolly In-Reply-To: <0C35F358-3E66-457E-9080-DAE4EB10BF16@holtmann.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Marcel, On 02/03/2022 19:16, Marcel Holtmann wrote: > Hi Caleb, > >> Since commit 3e54c5890c87 ("Bluetooth: hci_event: Use of a function table to handle HCI events"), >> some devices see errors being printed for vendor events, e.g. >> >> [ 75.806141] Bluetooth: hci0: setting up wcn399x >> [ 75.948311] Bluetooth: hci0: unexpected event 0xff length: 14 > 0 >> [ 75.955552] Bluetooth: hci0: QCA Product ID :0x0000000a >> [ 75.961369] Bluetooth: hci0: QCA SOC Version :0x40010214 >> [ 75.967417] Bluetooth: hci0: QCA ROM Version :0x00000201 >> [ 75.973363] Bluetooth: hci0: QCA Patch Version:0x00000001 >> [ 76.000289] Bluetooth: hci0: QCA controller version 0x02140201 >> [ 76.006727] Bluetooth: hci0: QCA Downloading qca/crbtfw21.tlv >> [ 76.986850] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.013574] Bluetooth: hci0: QCA Downloading qca/oneplus6/crnv21.bin >> [ 77.024302] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.032681] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.040674] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.049251] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.057997] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.066320] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.075065] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.083073] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.091250] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.099417] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.110166] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.118672] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.127449] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.137190] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.146192] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.154242] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.163183] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.171202] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.179364] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.187259] Bluetooth: hci0: unexpected event 0xff length: 3 > 0 >> [ 77.198451] Bluetooth: hci0: QCA setup on UART is completed >> >> Use the quick-return path in hci_event_func() to avoid printing this >> message for vendor events, this reverts to the previous behaviour which >> didn't print an error for vendor events. >> >> Fixes: 3e54c5890c87 ("Bluetooth: hci_event: Use of a function table to handle HCI events") >> Signed-off-by: Caleb Connolly >> --- >> net/bluetooth/hci_event.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > patch has been applied to bluetooth-stable tree. I spotted an issue with this patch - the vendor events are actually processed, it's the warning which is printed and not the error, I sent a v2 which properly disables the printing - you probably want that one instead, apologies for the noise/inconvenience. > > Regards > > Marcel > -- Kind Regards, Caleb (they/them)