Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2810416pxu; Mon, 7 Dec 2020 16:53:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJXH7LZRAK9crnqrgGjY8WW0ykmfAnGHUDhFKuOYMhU3j0plNiNUZptSWZxM/Khv65ZQC5 X-Received: by 2002:a50:9f4a:: with SMTP id b68mr22315461edf.296.1607388837396; Mon, 07 Dec 2020 16:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607388837; cv=none; d=google.com; s=arc-20160816; b=asPcOSoG4bXov+VZHdC+aBw7tZx5BUHRDok17kN3QP5WQljkW319YQeveCLX/bu0OX AWTEQM4uNRyETmoDg8K0wc5y1j/siT5eZU6kv/aGYpG7cFILCaJg+QF1vbjTiooMe9ei EzXL8AgdBnwzmnZk2xeO0AzDyOJS9zxV3QCZBmG1LscmXyxOeViUPjboFIZ/42m0GBLo /CxX/fJa+KXb+9gGqiCIAFljwSQkwTm/S9MHix3gz2VsEWQJP5mHxq44sad6jAYNMyrv BF7DnNw8MGC4ARMwGBMSOy0msrVL53QlsT9l+acoF8/hCq38nuOwpxh3Ik/3dvNX8Zpd ToqQ== 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=jDwNXbiJ8Z2sxaEdWrtMAFonvwN2YLjodC+16pA07b8=; b=RkMz51SE2HNqHzfQR/1r1coTsCH2S7IfrXMNAnsJ8QwMObVlixGv/nTFSHr2LAOIUm UUd+0LpdmhnYKD3W+nV5a1puPBH5MRjmIj+cwYSgiQ8l/aWIH577Ro0uW9LET0TEw2+i zYAKjfZD0A+WUT9KiVSGpRNe5F925cl44s7wBtP+ADPa7/WrnVBaaCq0bcfMqRzc1b5s rtEoWoG6hzGI+D15Q0PyvjnsU6k9eSROJn4DuGlCNBD+UGxVZEAi6nTJviohoaMVrHDT VdPUUoojEjueDqqM8oJnZxExxf35ZU3pX6vrD9c7aJ0HzLPAnRglqwY2zsSRBjlsZerM +8Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LHWWMFT9; 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; 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 r10si3063422edy.187.2020.12.07.16.53.25; Mon, 07 Dec 2020 16:53:57 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=LHWWMFT9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728300AbgLHAN4 (ORCPT + 99 others); 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-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-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(-) -- 2.29.2.576.ga3fc446d84-goog