Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1306713pxk; Mon, 31 Aug 2020 15:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQqsXtnV5Aj1a9EWp0crL+xSu2sAgquqroB5CDCMTHHN0f+AScoTbdJn4C+i/zvws0khc/ X-Received: by 2002:a17:906:36d7:: with SMTP id b23mr2948243ejc.149.1598914567593; Mon, 31 Aug 2020 15:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598914567; cv=none; d=google.com; s=arc-20160816; b=vaamyxO8tYJicv21upuGh/wcpJvhyLPMSDK+4kKAVkyimveGf+66yy12Yca84p1DHw bO5CILRetg23ERXihIOm1lXJv2BL5iGSJqgzro1XinQxjWL5/kHxIpjqqCzo+IsIr7C2 bKpOfdiG9Wh2J8WcB9JTIPiW6vziRPUCiL04a36F0ucFxe70LW/MNj5OaclvB5cPmPNo 8dvrXaR8m5SGCn3bAT9R4z63FC9MPbf5Mca3et19OJAVoclhOvI4/+zRKjYXpRceCT9X QZkcm9xsuOi3/dNW6h5xdV8GQoEhX4w7OvxbHPGnvFD6IhXqufdHdXfumPrit+6Kk156 kvjQ== 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=Jf+by2cMfVGYoXiaZmCY+bTjqc266EFHVYXp0RH8ESc=; b=FYe8M3f+FPkx1VapXTak3CiLk9h0cjYhypHQrjfOBKVCM8vXtThnaaTLyrnRKK27QM Tz2NMqR/6CyY8i8onLu0Z3gjHd8tPRjflKGvBJkFb+mQBKbscU+R6Ju82i86APasABzk rVqUU3+NTzxgBZo0I+Z7FQXGwDGJJBky40+11xz+MNu28BDk5WXSeXSASyn98CmxeeXc EpO2k3w9DF+EZJmrxanBoL7lK9nyCuJhq9MnFw5Gi8MsSWmK3PkYbU/MOWiOgzwhn5Jz aCMf6yMmSPamS6HcxpsZ4sqUr5ASlY5LlyaTy6HclOCdLXMgVlrk/JPg9kUvdjN4JmJU SZrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M1R6AqMd; 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 c10si1056301edr.320.2020.08.31.15.55.43; Mon, 31 Aug 2020 15:56:07 -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=M1R6AqMd; 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 S1730053AbgHaU43 (ORCPT + 99 others); Mon, 31 Aug 2020 16:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729506AbgHaU41 (ORCPT ); Mon, 31 Aug 2020 16:56:27 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7E24C061573 for ; Mon, 31 Aug 2020 13:56:27 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id j185so1425619vsc.3 for ; Mon, 31 Aug 2020 13:56:27 -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=Jf+by2cMfVGYoXiaZmCY+bTjqc266EFHVYXp0RH8ESc=; b=M1R6AqMdsetkO+AX4MhlxLKGGKiS5BUUn3OPkOAr3SakpmTnh/jk0srXqbl8RZyZ+x lECNuMmsXgPwNbbudAi8k5HFqT4XjcGMwUvhtc2hXk4cZw8MdCppQQLLxvmnwmCqajPP mWV5uo2OeyVfwHgR8QJtJgbXb3r3u9mz79wBU= 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=Jf+by2cMfVGYoXiaZmCY+bTjqc266EFHVYXp0RH8ESc=; b=ETx/Mn4CNqlLSrpjaG8i6NZsKgZ8gDMWTFxWycTqY/+QfU1IC3NqqSYTZXs/PQPr54 wI7cVqnGV3cyMLzMBo+O8Wbg5ABRhDkQ3MMTNP+gU7H4OXmMCezarWvjCOBRYDs2LG/v QuqZsoB3T7BV9qSkT6CnVvoy2HnDA5CrjrUSYGq2q/02xh59ZzGCmJbXAn2jmWiqX/Yz jvFrAnS5gwgNUBB+qGKx5Y2zHPBNCO/F+3ONMjzbYe/k/AQYLbMEvpR27htDRqWDJjFF nh6EGgngpCqqfyX/Hm3Psa6rEAcksazQWnfsr5J9lYQKVZQX4fEM8EVqzl6H6ojtBGNw eIHQ== X-Gm-Message-State: AOAM53066aSvskkv2jv/9fgCVe19PWDjLOd9i5woj9mERDGOze9Nr2OO wTNdOtQ3p42ZLFQN6AI1KLzJVLvSEy7CvwwIWjmmtw== X-Received: by 2002:a05:6102:5e:: with SMTP id k30mr3185433vsp.170.1598907386496; Mon, 31 Aug 2020 13:56:26 -0700 (PDT) MIME-Version: 1.0 References: <20200829010210.871471-1-abhishekpandit@chromium.org> <20200828180157.Bluez.v3.1.I14a96397d181666c124e1c413b834428faf3db7a@changeid> In-Reply-To: From: Abhishek Pandit-Subedi Date: Mon, 31 Aug 2020 13:56:14 -0700 Message-ID: Subject: Re: [Bluez PATCH v3 1/3] mgmt: Add controller suspend and resume events To: Luiz Augusto von Dentz 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 They have not. The changes are still pending review at https://patchwork.kernel.org/project/bluetooth/list/?series=325771. If you'd like to wait for Marcel, let's revert these two patches and land the whole series as one. Thanks Abhishek On Mon, Aug 31, 2020 at 1:34 PM Luiz Augusto von Dentz wrote: > > 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