From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F4D5C0018C for ; Tue, 8 Dec 2020 00:14:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 046C223A22 for ; Tue, 8 Dec 2020 00:14:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728481AbgLHAOC (ORCPT ); Mon, 7 Dec 2020 19:14:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728448AbgLHAOB (ORCPT ); Mon, 7 Dec 2020 19:14:01 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9D2C061794 for ; Mon, 7 Dec 2020 16:13:15 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id d2so8199772pfq.5 for ; Mon, 07 Dec 2020 16:13:15 -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=jDwNXbiJ8Z2sxaEdWrtMAFonvwN2YLjodC+16pA07b8=; b=LHWWMFT9u/U2fnJvx41Xx/NSzc+RV7L9B3jAx6zwyPMZE3X8VnFooVBCyLKrl7uyY/ 3rDJxXOHNhuQbOsXhwVMVO2WT+ff9DocL50LU87CrtuxYlEhASmtsblD13ahwCwcfq3M i5E+9o8h8+l+Y4FiDRQRPexYxDYCiJJ8f6rm8= 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=jDwNXbiJ8Z2sxaEdWrtMAFonvwN2YLjodC+16pA07b8=; b=ezMEdJcf3Ed7p8yn1ZoEY+AFp9eY2zqjDXHxHajGNNfYlMFoIzFun1ni8I2qBTNs6G PnO14PKh7pg4i74DA5fdKLOkMFQiqTuyKTsLQ0iI9oehzHLhEP7dioHykhO1EhC4Kpps WjOljSa0kCjG2wPIxX/Jt+pcrrJgeZgzZ6z1mDavS3ze2HDetYGgwgCuS/hsNR1VJwSM NqasOjhb9yU1N50FTcHGkFSEb5pRrxQlU/61ddLM621RetS2cpvu+GfdJac02CU44Vn1 Fy16maIXW5nQdzkyThgIvVQbsHRVnoFQAd//a2yfPDiUwMlB0uc9YW8n9JweI9KgyrZZ VTfA== X-Gm-Message-State: AOAM533WcXx71HhNzP69rIFKqFGgmZtmMvdR9E3vbYz+kbFS/Jh7zzjs ObXvbKCj5kIdlIij6iPlNt8xd6D2+/k12w== X-Google-Smtp-Source: ABdhPJza2GAZ9j8CMf2rSaLa7BcKFmO4JIdbZcvzE7/dUbAKD8S3LTUGjsXMRghhcnAWAWqqL66+Tw== X-Received: by 2002:a17:90b:1882:: with SMTP id mn2mr1261561pjb.236.1607386395193; Mon, 07 Dec 2020 16:13:15 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:7220:84ff:fe09:2b94]) by smtp.gmail.com with ESMTPSA id v8sm514214pjk.39.2020.12.07.16.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 16:13:14 -0800 (PST) From: Abhishek Pandit-Subedi To: marcel@holtmann.org, linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Abhishek Pandit-Subedi , "David S. Miller" , Johan Hedberg , Alain Michaud , linux-kernel@vger.kernel.org, Jakub Kicinski , Luiz Augusto von Dentz , netdev@vger.kernel.org, Howard Chung Subject: [PATCH 0/1] Bluetooth: Further improvements for suspend tasks Date: Mon, 7 Dec 2020 16:12:53 -0800 Message-Id: <20201208001254.575890-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel, This patch further improves suspend handling by getting rid of the separate function used for always configuring LE scan. Instead, we only configure LE scan if it is necessary and properly set the task bits depending on what actions were taken. The previously sent-up CL was incomplete due to a merge problem between ChromeOS and upstream. We merged https://patchwork.kernel.org/project/bluetooth/patch/20200917164632.BlueZ.v2.4.I3774a8f0d748c7c6ec3402c4adcead32810c9164@changeid/ but the upstream version didn't have the same changes: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=36afe87ac10fd71f98c40ccf9923b83e0d3fab68 This fix was tested after reverting all our local patches, applying the upstream patches and this patch on top. Thanks Abhishek Abhishek Pandit-Subedi (1): Bluetooth: Remove hci_req_le_suspend_config net/bluetooth/hci_request.c | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) -- 2.29.2.576.ga3fc446d84-goog