Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp487489pxa; Tue, 4 Aug 2020 10:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyalbygo1G7dAh7DFyiZm/+EnMfz2mjrGGen5f5U9fRtAanSfjj/+YRhVbI3WYOzG8ros/X X-Received: by 2002:a17:906:f8d5:: with SMTP id lh21mr23287802ejb.360.1596561160622; Tue, 04 Aug 2020 10:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596561160; cv=none; d=google.com; s=arc-20160816; b=hDgXTIgKKm6DiGjKq/gzmqnCikj9HBT3hlzFxqYJtrYlhhvDjMlUEFzE+fxjiA6/CV CtQqGfyxnRSlQCifLlR5+MJYDqoOk1jl/fNXBlmAnBJCK48OiMhYDcl3CQT6KesQk5H4 utyzRwTXhTerNa2XhUkDag+8fPxuCQ9DchHM8LunvwwrojjQBWGH4j7+B7HvFORbkeap RaFoV4CNWJ4IVwha5eI80de7NfyN8Or6rnZ2TzMYKAGVKtkdwqHCCNT/1zPskkQmJlUX RaScynBfVomo/+JHNLHZwUwcC6EBrS3Du3h7yIArwwhaLORWiHvV+YQcX11FTNTmn+7W j4nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NDe2U+JQQtlm6PkmOwl5fjQfHoZ0o3DW3eDHCm6kTvQ=; b=JNGwa1GfulguiKYDG+GcJCnJ0m9eDDO1bZD81lkUxEtWjCo8huH4JqgMehmvdALRS8 n1KKoSl9l7kX/WKc9qVgMHgxRa7UCJOQFaZJC/DnS4bcEqbWqOHD4y/6ggySVBVd+IXP kovrO+6SfZbmHe7JYtg1M1C8w1natFhtpwlbC2tRPr2f7/wwT2F0Ve1YBwW3SmT0X0Cq M+foDH2iYVSz5RCsNHvOk4yJbKogTxXMwdwUuu492a2YuxYVVg2IluaUi3zqs+NLrB7o ngUoYYSZeavwqZB+bU3kp9EsuWKmmVcKDZSPV5Cc6mAOjKgMUadg2Z7zwy3KPndFFnCG ZiiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SoyMHVPk; 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 co6si7669951edb.407.2020.08.04.10.12.10; Tue, 04 Aug 2020 10:12:40 -0700 (PDT) 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=SoyMHVPk; 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 S1726580AbgHDRMC (ORCPT + 99 others); Tue, 4 Aug 2020 13:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729388AbgHDRL6 (ORCPT ); Tue, 4 Aug 2020 13:11:58 -0400 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4135C061756 for ; Tue, 4 Aug 2020 10:11:57 -0700 (PDT) Received: by mail-ua1-x943.google.com with SMTP id q68so10057535uaq.0 for ; Tue, 04 Aug 2020 10:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NDe2U+JQQtlm6PkmOwl5fjQfHoZ0o3DW3eDHCm6kTvQ=; b=SoyMHVPkgxHGIyVFghEqt+dz76dWygdZK5qv96mgYHIB8BQDfnDSdlwicrCousdePt 6kFYSc0n7RSJRhh/WbIBfAW1Mu0Sap9jaMdg6UlhNdK0k672HQpR0CmBGVutHlwlHgV+ jMC83l8tqgA+ALlv4CakhMvyvvf1kF8Uhx/7c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NDe2U+JQQtlm6PkmOwl5fjQfHoZ0o3DW3eDHCm6kTvQ=; b=qq8mMetVoNQwh5a5QCic3D88EjVk+qrGIbxafeHcxTzXAAY3PS1aanz8Md1RnY8e4e EeN105JAsXzxbP+Fr8r9dn4UZ7bpOUBjgo9XE50SG5RyJgDfoOJUj287u5JwubctIU3Q v78tvL/PyKiA4pIjZkRneF5A/IGHO8nV7/UUNkBibqVfSSu04UAMcZfKmnvKiTjLm0Kd vU6UbHDRva7Cl2z2v+G6NC2B7O3R/jerwwEdRVgFbsKO9jkndqPZVzhafo0u3QASYaCO Cddfq5dRTnSPyo5Rgiqu01n+aqyfUO5ECIN5hnXBLne4Mu623KPVQCaoR1OmeX19k7VB ys4g== X-Gm-Message-State: AOAM530MHHJEB8nCftH7tuwc2qVw16hFRWF98CA2Ik9gAq62XAe7Mhfw ZnN+xhm+SYZDPUREOLMZaYT9otxp9KipIb1AcWeYbQ== X-Received: by 2002:a9f:2197:: with SMTP id 23mr15629203uac.60.1596561115676; Tue, 04 Aug 2020 10:11:55 -0700 (PDT) MIME-Version: 1.0 References: <20200729014225.1842177-1-abhishekpandit@chromium.org> In-Reply-To: <20200729014225.1842177-1-abhishekpandit@chromium.org> From: Abhishek Pandit-Subedi Date: Tue, 4 Aug 2020 10:11:44 -0700 Message-ID: Subject: Re: [PATCH 0/3] Bluetooth: Emit events for suspend/resume To: Marcel Holtmann , Luiz Augusto von Dentz Cc: ChromeOS Bluetooth Upstreaming , Bluez mailing list , "David S. Miller" , Johan Hedberg , netdev , LKML , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Gentle reminder that this is waiting for feedback. Related userspace changes are here to see how we plan on using it: https://patchwork.kernel.org/project/bluetooth/list/?series=325777 Thanks Abhishek On Tue, Jul 28, 2020 at 6:42 PM Abhishek Pandit-Subedi wrote: > > > Hi Marcel, > > This series adds the suspend/resume events suggested in > https://patchwork.kernel.org/patch/11663455/. > > I have tested it with some userspace changes that monitors the > controller resumed event to trigger audio device reconnection and > verified that the events are correctly emitted. > > Please take a look. > Abhishek > > > Abhishek Pandit-Subedi (3): > Bluetooth: Add mgmt suspend and resume events > Bluetooth: Add suspend reason for device disconnect > Bluetooth: Emit controller suspend and resume events > > include/net/bluetooth/hci_core.h | 6 +++ > include/net/bluetooth/mgmt.h | 16 +++++++ > net/bluetooth/hci_core.c | 26 +++++++++++- > net/bluetooth/hci_event.c | 73 ++++++++++++++++++++++++++++++++ > net/bluetooth/mgmt.c | 28 ++++++++++++ > 5 files changed, 148 insertions(+), 1 deletion(-) > > -- > 2.28.0.rc0.142.g3c755180ce-goog >