Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1128090pxb; Thu, 4 Mar 2021 04:10:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2i3k6n1/y2Toqld/7h45v8SpIofPv4vdWbmE28riaAIajR0DZcYtpV3NQk51EKHrwziSt X-Received: by 2002:a05:6402:46:: with SMTP id f6mr3987655edu.252.1614859808629; Thu, 04 Mar 2021 04:10:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614859808; cv=none; d=google.com; s=arc-20160816; b=mXEmn/EQk/l2sNUt4Zl3Mh7eh1J4y7Jzsb4pDh1WNxN27mpcq0Ig2zC6+7cFxwJvZC 5ovhWm2KciqMYMG0hydOKO/z0deVFoWyi3X311QpcpZ3jcWphX26jMR0/xUqDd5RC7Hc lLxhcHDGvEz8F5zIQRItxOOGe8bg30xAOA3AhW9I0flcpm75ffKmwlJydjr4q04FFxxX O5gHRt1hcFU2pSM+9jP4XzShsEMQRVgIPDJKrqdcQtFGF9bhE9YHUaNkRZ3OcoZf0k9e w4i7PXcFgCFIFByayNEVKoY3tIoE6hhtXXCyVQeq48IPeCdwrtgChiNUTQeK/GyHMRYY kSTA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=NyynLq8oNgsdRcq781UggdGgBFy7WDx8dH3cl7LA92c=; b=ljkotGtfvSm4MY0iqmWpa4DX/je8lXaMaZQoAn1nZ+GBsdi2ELb3JXHcP5xwIT2cSn yMQTUjqYPTkoFecZn+4NyKE/cd8xD5N4BBCTXhrcpbdc7Q+WsE3Qvfr4e/a5Dv7PWWib mG7R13CWbkT+HHkCmUuEjcqxkfEpyWXUxCfWJ55B6Pqd12gh8UJX1a7athsC8upbRWN5 ZGsJ328L0gtb1gj5jR6D6nwnI4eUFfI6LhtC5R1HacixkO50kKmXFHmPoSNqk1T9Rnm4 Ftb3yqHWSw5Rddb4xq7Bn6StGXnQtb6ZOuQFYMkyHfhrB93GH/jsag13QDDUJt218YUz clmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ceDBj2t/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj27si8648832ejb.513.2021.03.04.04.09.46; Thu, 04 Mar 2021 04:10:08 -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; dkim=pass header.i=@chromium.org header.s=google header.b="ceDBj2t/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1579400AbhCCSbM (ORCPT + 99 others); Wed, 3 Mar 2021 13:31:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240322AbhCCQfP (ORCPT ); Wed, 3 Mar 2021 11:35:15 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DDD0C061760 for ; Wed, 3 Mar 2021 08:34:12 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id a24so14306846plm.11 for ; Wed, 03 Mar 2021 08:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NyynLq8oNgsdRcq781UggdGgBFy7WDx8dH3cl7LA92c=; b=ceDBj2t/llHpk+rrrZDaEoCVbRxB6QyxGyVd/vBbz+W9RkHeJMwURrduxhcKFEsNTy JfnpMu3ayxmdI2o/FTvnXcLYQIQLvuqzxNX3jf3WTxU5hKFBqlP3/8KG4bIvQkDikv59 UtctDcf2vktO2RYldfZ2/WiP1hH1f0UJpgUMk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NyynLq8oNgsdRcq781UggdGgBFy7WDx8dH3cl7LA92c=; b=IOZEbmL+3nlRqkPuVpU9oP9RSu/XWEC6Jb3ht/MG1WYcTTZPvNhSG/pwJPm5b0/kWG LFBjym20oI/Pm9ONYZHckg5AXKtqukDzRX4M/j3K2WzYRwD3e3vT0tfVhW8pDz4G7SB4 h+Qjn9Kd8DYNbobfPmT02m2T7eTMDDgxan/+WGFjCH3MulNjG9bUgK9d82A57vMQnBiH wSJcM7DZ+eqM6kYUK0T3L7kXxK2M8TVvPSjZUm/n0qRXoqavEeQ32XgiOPIntIkBNPQH SCNkuNN/hwvoEGVf66S2hJscjh1MNeZRsYBDuk8WqWLdN89hNE35qF2PHJCErWjxzAlA cGsA== X-Gm-Message-State: AOAM530xZNDSzR4WqYhvASZjkD3JtkvPPlYODQGn5vCuXXR5el1Lw4c5 u1jM90pijwgU1Mx1E3QSY9X3TQ== X-Received: by 2002:a17:903:2301:b029:e4:700b:6d91 with SMTP id d1-20020a1709032301b02900e4700b6d91mr61218plh.19.1614789251798; Wed, 03 Mar 2021 08:34:11 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:9c83:cccc:4c1:7b17]) by smtp.gmail.com with ESMTPSA id a21sm3171172pfk.83.2021.03.03.08.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 08:34:11 -0800 (PST) From: Abhishek Pandit-Subedi To: marcel@holtmann.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Hans de Goede , linux-bluetooth@vger.kernel.org, Abhishek Pandit-Subedi , "David S. Miller" , Johan Hedberg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jakub Kicinski , Luiz Augusto von Dentz Subject: [PATCH v3 0/1] Bluetooth: Suspend improvements Date: Wed, 3 Mar 2021 08:34:03 -0800 Message-Id: <20210303163404.1779850-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.31.0.rc0.254.gbdcc3b1a9d-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel (and linux bluetooth), Here are a few suspend improvements based on user reports we saw on ChromeOS and feedback from Hans de Goede on the mailing list. I have tested this using our ChromeOS suspend/resume automated tests (full SRHealth test coverage and some suspend resume stress tests). Thanks Abhishek 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 Abhishek Pandit-Subedi (1): Bluetooth: Remove unneeded commands for suspend 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(-) -- 2.31.0.rc0.254.gbdcc3b1a9d-goog