Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1305367pxk; Mon, 31 Aug 2020 15:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOo7x+NmCbJWm6y3SDEwzp3CAz50hRbERN4UJGFyW1VMjBrFWyskpR6rfQJPDY2dznWT5+ X-Received: by 2002:a05:6402:1710:: with SMTP id y16mr3291293edu.197.1598914399582; Mon, 31 Aug 2020 15:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598914399; cv=none; d=google.com; s=arc-20160816; b=FHpmkfcfM723SWwegbVrijkOzBGQzr8yDeXX/9sHYHKA82ncUvWDSe+heTJHwNrImG HBnrQE3ay8jRop+mxivOU4WKJk/NRu4G1ESMW+xcdDFkU+7uQNpUns90xYv85IA4ga+j Yqb6mCuHtOw+7fmcI3ruZ6pn+wEvpY7B6mtB4gggDJ9jjgQRmaDfGDZI8rg5TfNrN7jQ PmoOjwHArHH9c91rZJaUFaBMd1VRFbbTWayWDMJvbm01B1cU3+89Ni91boKUwjV/WOPQ eFmYFiibluNUl6+0CK2LdJ1Hvhb5sr3drC6CNYRwUIcILqrYAhL4rbU+xXdbmgAcOskA 2gCQ== 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=afPtGRN+FnzfS3mVOZ0v/4LJTXGWDmVqMyAKYPVaFzk=; b=Z215bO+dMI20Bz+m6UKbPnLWMP5fg3kOpbiB6d7wJpZ1HxSRqqRNPN62iDSounb4v7 NJF9ZEHLH54g75ZXLc782Cmbm1q5GZ4NbHaUrI/3kM9u1SIcMdJ2pV7M+hROqxKuEpoZ stqHItGUdJUOkWoX5oIE0UtfDl3O+FY44HvItEdkmRV8u8cCUgDtWpZDeGSjRYDsLr5o Aw+Y6TL08q3pjiC1NgxtSm3o3ewYiR0Gd8+ec8kAbbLfzUgnQxsEgYVQvAld12HBuq0C MsVrQtLk1PNzv6CrGVrbHN0bV5U8Sc21lZ+GFL1Dzu5+GfkOtAZS/2VprCrw2PdDE2wt frSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AWGrL2Rt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oo24si6113799ejb.651.2020.08.31.15.52.38; Mon, 31 Aug 2020 15:53: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=@gmail.com header.s=20161025 header.b=AWGrL2Rt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728580AbgHaUeW (ORCPT + 99 others); Mon, 31 Aug 2020 16:34:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728402AbgHaUeW (ORCPT ); Mon, 31 Aug 2020 16:34:22 -0400 Received: from mail-oo1-xc41.google.com (mail-oo1-xc41.google.com [IPv6:2607:f8b0:4864:20::c41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CAD3C061573 for ; Mon, 31 Aug 2020 13:34:22 -0700 (PDT) Received: by mail-oo1-xc41.google.com with SMTP id y30so1791582ooj.3 for ; Mon, 31 Aug 2020 13:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=afPtGRN+FnzfS3mVOZ0v/4LJTXGWDmVqMyAKYPVaFzk=; b=AWGrL2Rtst2W8ovrexQABrUbFf46ka14qb0a6uVZnrWx7FfjyGoPjYu4u/JTi3g42N zjiHYRd8lhN5hcrAku/DyvK35lM2+YBvDyRpl9fsjOx4knpA8Gqq3v/uH/UoVTqAj8XN 7IuYkeJKub2yPXDk0eLqv6lRs+iiRq8ZEi8JCoJEZa1o0mnHoov0gMbnhXWUW1yG9B/U kzaFXzOyxYitq5LMz0H65JUbOh/W8+LQN/HmDztHZpLZKKU2WuRBeVseEiLCHulLVraY r+gYLhRHQPcuOp1AR14yy3sVazt6e5pAmhhqgeQ7e93xZHLm/qhfAgxfbXLEGYtr3LCl Yvqw== 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=afPtGRN+FnzfS3mVOZ0v/4LJTXGWDmVqMyAKYPVaFzk=; b=CxWBdczcCPgC6QoJIdZUVe1oI2q5Az54gen/pOYdKckj6XjeXVOt9u8PvNfZYrhoD8 FZusuB569dr3lfyLxgV+9p9OK4F1RaaAMo+MHvbAQeJDLXW1XzMcttm7NVM4AuRWKgqP ZyV3wdQyFCOQcRD1Vg7/vuriWeKyZCIWbj/McARJ1+HG4VGtgySGMK6JKkGAk8Zivlrj vcRIjvWZykIw1EbEHic4QWU6XE2EBpf8LJBRQc8fQxj7U8gfBo3Pwgkaa4dwU5IPAluO ZfB4mNKSqm3n/D6rSaDAqsbkjRQSZG7XZFVrq5vj5szoGYg3qDssR/00OFBeX9MZq6bn XAQQ== X-Gm-Message-State: AOAM531lof/Aal2g92O97wR7ZloutsAkuR2ob/J1XqSLv+5i8AIJ5JXp 0JkVtXkv2slEY/BBvKc1X7z4hqx2bsTQW7Qbrh1qMKka X-Received: by 2002:a4a:924b:: with SMTP id g11mr1976063ooh.9.1598906061330; Mon, 31 Aug 2020 13:34:21 -0700 (PDT) MIME-Version: 1.0 References: <20200829010210.871471-1-abhishekpandit@chromium.org> <20200828180157.Bluez.v3.1.I14a96397d181666c124e1c413b834428faf3db7a@changeid> In-Reply-To: From: Luiz Augusto von Dentz Date: Mon, 31 Aug 2020 13:34:11 -0700 Message-ID: Subject: Re: [Bluez PATCH v3 1/3] mgmt: Add controller suspend and resume events To: Abhishek Pandit-Subedi Cc: Marcel Holtmann , ChromeOS Bluetooth Upstreaming , "linux-bluetooth@vger.kernel.org" , Sonny Sasaka 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 Abhishek, On Mon, Aug 31, 2020 at 11:28 AM Abhishek Pandit-Subedi wrote: > > Hi Luiz, > > Could you also merge https://patchwork.kernel.org/patch/11663455/ that > adds this to docs/mgmt-api.txt? Looks like Marcel had reviewed but decided to hold on until the kernel parts are applied, have that been resolved? > Thanks > Abhishek > > On Mon, Aug 31, 2020 at 10:36 AM Luiz Augusto von Dentz > wrote: > > > > Hi Abhishek, > > > > On Fri, Aug 28, 2020 at 6:02 PM Abhishek Pandit-Subedi > > wrote: > > > > > > Add the controller suspend and resume events. > > > > > > Reviewed-by: Sonny Sasaka > > > --- > > > > > > Changes in v3: None > > > Changes in v2: None > > > > > > lib/mgmt.h | 14 ++++++++++++++ > > > 1 file changed, 14 insertions(+) > > > > > > diff --git a/lib/mgmt.h b/lib/mgmt.h > > > index a800bcab4..46d894ae9 100644 > > > --- a/lib/mgmt.h > > > +++ b/lib/mgmt.h > > > @@ -772,6 +772,7 @@ struct mgmt_ev_device_connected { > > > #define MGMT_DEV_DISCONN_TIMEOUT 0x01 > > > #define MGMT_DEV_DISCONN_LOCAL_HOST 0x02 > > > #define MGMT_DEV_DISCONN_REMOTE 0x03 > > > +#define MGMT_DEV_DISCONN_LOCAL_HOST_SUSPEND 0x05 > > > > > > #define MGMT_EV_DEVICE_DISCONNECTED 0x000C > > > struct mgmt_ev_device_disconnected { > > > @@ -959,6 +960,17 @@ struct mgmt_ev_adv_monitor_removed { > > > uint16_t monitor_handle; > > > } __packed; > > > > > > +#define MGMT_EV_CONTROLLER_SUSPEND 0x002d > > > +struct mgmt_ev_controller_suspend { > > > + uint8_t suspend_state; > > > +} __packed; > > > + > > > +#define MGMT_EV_CONTROLLER_RESUME 0x002e > > > +struct mgmt_ev_controller_resume { > > > + struct mgmt_addr_info addr; > > > + uint8_t wake_reason; > > > +} __packed; > > > + > > > static const char *mgmt_op[] = { > > > "<0x0000>", > > > "Read Version", > > > @@ -1088,6 +1100,8 @@ static const char *mgmt_ev[] = { > > > "Device Flags Changed", > > > "Advertisement Monitor Added", /* 0x002b */ > > > "Advertisement Monitor Removed", > > > + "Controller Suspend", > > > + "Controller Resume", > > > }; > > > > > > static const char *mgmt_status[] = { > > > -- > > > 2.28.0.402.g5ffc5be6b7-goog > > > > Patches 1 and 2 of this series were applied, thanks. > > > > -- > > Luiz Augusto von Dentz -- Luiz Augusto von Dentz