From patchwork Tue Dec 8 00:12:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Pandit-Subedi X-Patchwork-Id: 340436 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 E7A83C4361B for ; Tue, 8 Dec 2020 00:13:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BBFC723A1D for ; Tue, 8 Dec 2020 00:13:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728441AbgLHAN4 (ORCPT ); Mon, 7 Dec 2020 19:13:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbgLHANz (ORCPT ); Mon, 7 Dec 2020 19:13:55 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7FC0C061749 for ; Mon, 7 Dec 2020 16:13:15 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id 131so12071129pfb.9 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=PVASDqWBA6N5s7cOYzGnsiFEjW6gwQ6rz8ECxnSX1WWycmL5smdAeLzVNXraozJs8M c21FsMooYtfeenr8Jka5mwSUosjpqqAfiBVVuuPtlzPZYXxoFgfc4CxR0gIWyUIuZp9c YeIBTeRxl/gz0640+RgEpMq5xkfAtSwL7thgCyCscddL6JinyG+gX3K7DGZUsWnbTLmG rUHTXl7xMy1rieanRKBylVAFT9apdFLUn8i3LgK50RJKvGX38X9o9TN2ELv50oP4dSi9 vOdj/FvgTb13yl4gIL5rZ3rTIPgwu6aKL64cF+LHcuuTD2yqnu/MncAzTP3GEk4Qy9Bx RElQ== X-Gm-Message-State: AOAM530F01TSKZdvo95GXMuxvmzNQGOQBTXplnp+sH5q/SiHKyqDbtu3 7fuYaw7AwRrjqlSAmrFv9PjyXQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@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(-)