Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp94669pxa; Tue, 18 Aug 2020 17:09:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEFH67nMoR8PKHBUh2287KNcI2Fsf1eVmdUiVuZOT9ekopSHJ8aZIQ/ab5bidOIZhdS9Pr X-Received: by 2002:a17:906:1f88:: with SMTP id t8mr22450410ejr.241.1597795759043; Tue, 18 Aug 2020 17:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597795759; cv=none; d=google.com; s=arc-20160816; b=broxTQt65TN3zvvU0Gtr6OmAp4x0kYhzDUO9gs0Cp3HucZHy4I28YZGz3YX0+f5RCI kW3XZYKltqAUGXRC+zY5bWPEWeKBpd3ZhZvIxQPZaRvOLBVi3IbIG+EBBmHg3GT01mPO jsk5S5NG8AicaJ7ZacKWknKrSvORuIdPkSaSpiQQChpluaYWRZD/TvV/tY3gOD9HT7iZ wRD572GwFt7oe1tqAU9JSS5i8XRakvgJ574gtVQef5UbeyuFW0ERH7gqN3v6fUB2Cq6a 6j59nYpZNTFyvp3odfUUYSJ1fkcukBQOPaea8jOERWdPUaWAo32wTLyfHME07qXFqVRV fkSg== 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=cB70dETR/NyGQeHCHTARFj9L+SQvd7OlAWQERQoCVII=; b=c8+W0fy3VFJFF+b3MlgWpTz1vGtS5f4zRCZp5GFMAHgBmXT0KeHhl1coWWdTy6Js5x 5m+nd/c5E90+zNfBaxSeGQIzdzXmRt13CyYi6SlCIvZx8GS5L9LlCN290Hp079rBO1up FGQKJH9owq8hzrsCIeYSF0sGLJ7FL9lf0bLGD/JuoA0JoQd2RJUAvUKWB3hxj2hIOSFG MAaIGlw+pOVSeLcyvkbYdVbph7yzstjQgVDzKR4uLkEiiPdwtp7ERTDVkSEPfiGIRZVF OQWAiXFtK3md3cCBOZ4EQ7iPeOr1aVPt0tInMFxayYCS4gZQfgRuOlFoOSKPu3Re22kB eygg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="VH/aoSyZ"; 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 w21si13766059edi.330.2020.08.18.17.08.53; Tue, 18 Aug 2020 17:09:19 -0700 (PDT) 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="VH/aoSyZ"; 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 S1727022AbgHRXea (ORCPT + 99 others); Tue, 18 Aug 2020 19:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726632AbgHRXea (ORCPT ); Tue, 18 Aug 2020 19:34:30 -0400 Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8ACFC061342 for ; Tue, 18 Aug 2020 16:34:29 -0700 (PDT) Received: by mail-vs1-xe41.google.com with SMTP id a1so11043202vsp.4 for ; Tue, 18 Aug 2020 16:34:29 -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=cB70dETR/NyGQeHCHTARFj9L+SQvd7OlAWQERQoCVII=; b=VH/aoSyZVjORXv3NGcpvObwwphjJTPh8Teb99rTAe6HRr/0164LWsOX0ahj5q7dRDH 5XIXK3BbjyjgmjpUwj+nAZSn4w6cRWSM6sGsH3NJe0BMbCbtUqKkHOyOIsqpouIwIB9O 4HAUlPnDMdu4VX491vMC+FOMEBW2rpYRT6IV0= 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=cB70dETR/NyGQeHCHTARFj9L+SQvd7OlAWQERQoCVII=; b=nqWKrnCSAnmem4Z4zprGMyAxYcNkjPjzj5olVIMmSYStX2ldDFwnrXm+bKBlAO65p2 mLDxJ0k+O8NBIwOQ/qi+0MLCJ9BZ0ymJQ6BhIVys9eRaWaX8VcZcxoy2tf75mWGw7oe8 m0Ry08nbFOHY6ZBtGDgESHo8ABKCfDHL84/ahKCtHdhY+tHpvrq2Rwq9YBxrSgm2hb/3 xJ/ZFqzBt7FOj6du4GG8phkBICUro1Zw/gYAHvrxMVdSJdrkwu4Uvhai/ThGoTSRfalW qi+zgopxQ1bi7DHAJWVDtcky7/BM6aS//DBfJPFgVmYoGY9mPkWDVMGZRtZMZXvtVMMV t4Ag== X-Gm-Message-State: AOAM532b9/becparWHgDrlz+L3MPztwZAq+xcgaF1rBId0dBnvWEzvXh gXPq0hAR8yCROVnRdvakHayR5OBhU1hoJjfdQTFfRg== X-Received: by 2002:a05:6102:311a:: with SMTP id e26mr13531599vsh.86.1597793668644; Tue, 18 Aug 2020 16:34:28 -0700 (PDT) MIME-Version: 1.0 References: <20200729014225.1842177-1-abhishekpandit@chromium.org> In-Reply-To: From: Abhishek Pandit-Subedi Date: Tue, 18 Aug 2020 16:34:17 -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-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel, Please review this patch. A newer series for how the controller resume event will be used is available at https://patchwork.kernel.org/project/bluetooth/list/?series=334811 Besides usage in bluez, these events will also make debugging and testing suspend/resume for Bluez easier (i.e. finding spurious wakes due to BT in suspend stress tests, asserting that wakeup from peers occurred as expected in tests) Abhishek On Tue, Aug 4, 2020 at 10:11 AM Abhishek Pandit-Subedi wrote: > > 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 > >