Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp575191pxv; Thu, 22 Jul 2021 07:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymenWVpb1T2OP2cWXaVsWenViiyCHYl+yVJgu39XrSQ/Y7tIXNaTx7mB5HGS+esJvydKc4 X-Received: by 2002:a05:6402:51c7:: with SMTP id r7mr56617815edd.150.1626963549834; Thu, 22 Jul 2021 07:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626963549; cv=none; d=google.com; s=arc-20160816; b=p+jEUrl4mHcXRujmToGCwPpVCv5GNESzNi38XTolguaOfQkWjsoYOo1Bl7fPJVdD1p gQ83BXAXGZp2XIcXxoalr63gTwjdzJLZAWYD4R494bcPD+qcYDZPNtiCyxy798HCYZLK qnKl/2hmPhc4P/xmnWoKAcVdzfAtbcqyvqMos6AetySkSkyZi/lWnfW1xA+pu179kZjb euI1RitLf9bJQ6pggYkDhPikLSIDHtgtTJt6yPvSsvAUdDzqsHCsFvQiEjdf1N3f8VQy qWDhplbLdHBbeUbel2iPQNwVyKxTC7ktPWfkVltuj2gWqrhlfF1QlYnHQTY9dD3epFd4 OfzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=oCGF4POKA/lUlnfw2FaAeBfLsObPRsYL6HG9xHH2vCQ=; b=hgGG/cnZdz07USw4+CktcaZaI7bla/fn1If46437PtxC5CdCUk7PdqA7ft/kKUFZux aTPqwkbCwE8talwug9z+rhxqUMVdmEPY0UWv9LJnqvJ1KkHIn2R7ti9qIiG/7qvU8W+A jFAx9HQrM8paDio29CxRCw8X1gLKTMkXQA3lR+ZOAIlrGZbtGPrIGJKEmHCZLj7+JlkD byzmqvMgV3CMCfx1dk6RqR/XynTszvc849brW1pKMKdXMGBBfAR3gKlzRHCBklpbQLMG c0gCqhSfE4JgJ756jk1beRRJOLfwqaoGlkXjt6ebyBnx2nJQhiwfscUu1CInP1nmAT1Z 9Yjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ka6si12070716ejc.26.2021.07.22.07.18.45; Thu, 22 Jul 2021 07:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232331AbhGVNgj convert rfc822-to-8bit (ORCPT + 99 others); Thu, 22 Jul 2021 09:36:39 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:45273 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232105AbhGVNgj (ORCPT ); Thu, 22 Jul 2021 09:36:39 -0400 Received: from smtpclient.apple (p5b3d2eb8.dip0.t-ipconnect.de [91.61.46.184]) by mail.holtmann.org (Postfix) with ESMTPSA id CD78ACECDD; Thu, 22 Jul 2021 16:17:12 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH] Bluetooth: btusb: Fix a unspported condition to set available debug features From: Marcel Holtmann In-Reply-To: <20210709134625.1235015-1-jun.miao@windriver.com> Date: Thu, 22 Jul 2021 16:17:12 +0200 Cc: matthias.bgg@gmail.com, Johan Hedberg , Luiz Augusto von Dentz , Bluetooth Kernel Mailing List , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 8BIT Message-Id: <3A8EB08F-C6D1-4B92-B72B-265C49DC5940@holtmann.org> References: <20210709134625.1235015-1-jun.miao@windriver.com> To: Jun Miao X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Jun, > When reading the support debug features failed, there are not available > features init. Continue to set the debug features is illogical, we should > skip btintel_set_debug_features(), even if check it by "if (!features)". > > Fixes: c453b10c2b28 ("Bluetooth: btusb: Configure Intel debug feature based on > available support") > Signed-off-by: Jun Miao > --- > drivers/bluetooth/btusb.c | 18 ++++++++++-------- > 1 file changed, 10 insertions(+), 8 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel