Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1130075pxb; Thu, 4 Mar 2021 04:13:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsuHX75kiV6sGo0khZB6MJeoa8WUZ9LBnVn8N9n2DQl1yMHxWN3uGIMEsolvno4Bu1tVLL X-Received: by 2002:a17:907:2661:: with SMTP id ci1mr3823612ejc.403.1614860001219; Thu, 04 Mar 2021 04:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614860001; cv=none; d=google.com; s=arc-20160816; b=crUL+V64YniB4HoIE5qg1dIrr6ZoWi74Od80EyobbIY5h3fgZfu3Evml4luRcd7+Ks veUXO748bgABh8fk8NICpzDc+kr3jMZbyMhopRpnjsgFLm8zWraVwCe3LqqKCPUIJolX SZeUIFUopEfbclSPMHLMxpoWtaRWyKSUBCwbFCzWXxE7J93rf2VwrGY/giJ05m2r9mb4 hosp1KKwG+d9peuePQg5DNm/msSG/SWdCq4CJGGMlvj0KSfGUZYU+GufrXR6IwwrOw92 YJW2n0uuWgQmDG0V3N7ciybw7fkssLnrXq8QmQW2ChQWWHQWR/MMc/NzdmYEPqrpoual Bc1A== 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=3Susg28ij+zDmN1mdEIiLcP3IZCowfvZ9DOUxWFMpgk=; b=dHfYikZBWE9BCOIfySS9IRt4TWg2xqVfHYpP2vBmbMC4/XNZ0in2DhT+zkxrjQLwhI QgOjaFmB4lmEH6LkPKUBAOFUOZwl1nzNSQR0XJ8KloYRNHNbD80yGAVBuG+jwVnYx1u6 vGr2ncAaM11rDutgtf2dfjuT/1mFRxjy0KaDGJTUM7nnqmz2QG9oQ9asLF9sMLoxmJly vCB16uADbwQ11lJKgbR5BejE9czKZcpEYnGhIAUysDjjQwKoj741BT7yg46TVa1cs042 dtaoVizEHijzBcSCKMQgzgK7xlZgOWHvPy5Ho7G2H/IydS+X40OxKrg/ll6pWRGTsXh8 eRlw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si16040958ejr.429.2021.03.04.04.12.58; Thu, 04 Mar 2021 04:13:21 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1579899AbhCCSce (ORCPT + 99 others); Wed, 3 Mar 2021 13:32:34 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:32849 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1452899AbhCCQvZ (ORCPT ); Wed, 3 Mar 2021 11:51:25 -0500 Received: from marcel-macbook.holtmann.net (p4ff9fb90.dip0.t-ipconnect.de [79.249.251.144]) by mail.holtmann.org (Postfix) with ESMTPSA id E28C9CED05; Wed, 3 Mar 2021 17:58:10 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH v3 1/1] Bluetooth: Remove unneeded commands for suspend From: Marcel Holtmann In-Reply-To: <20210303083400.v3.1.Ifcac8bd85b5339135af8e08370bacecc518b1c35@changeid> Date: Wed, 3 Mar 2021 17:50:36 +0100 Cc: CrosBT Upstreaming , Hans de Goede , Bluetooth Kernel Mailing List , Archie Pusaka , Alain Michaud , "David S. Miller" , Johan Hedberg , netdev , LKML , Jakub Kicinski , Luiz Augusto von Dentz Content-Transfer-Encoding: 7bit Message-Id: <2CB58E31-C5CB-4A61-9983-EB4C9485E8A6@holtmann.org> References: <20210303163404.1779850-1-abhishekpandit@chromium.org> <20210303083400.v3.1.Ifcac8bd85b5339135af8e08370bacecc518b1c35@changeid> To: Abhishek Pandit-Subedi X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Abhishek, > During suspend, there are a few scan enable and set event filter > commands that don't need to be sent unless there are actual BR/EDR > devices capable of waking the system. Check the HCI_PSCAN bit before > writing scan enable and use a new dev flag, HCI_EVENT_FILTER_CONFIGURED > to control whether to clear the event filter. > > Signed-off-by: Abhishek Pandit-Subedi > Reviewed-by: Archie Pusaka > Reviewed-by: Alain Michaud > --- > > Changes in v3: > * Minor change to if statement > > Changes in v2: > * Removed hci_dev_lock from hci_cc_set_event_filter since flags are > set/cleared atomically > > include/net/bluetooth/hci.h | 1 + > net/bluetooth/hci_event.c | 27 +++++++++++++++++++++++ > net/bluetooth/hci_request.c | 44 +++++++++++++++++++++++-------------- > 3 files changed, 55 insertions(+), 17 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel