All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
To: luiz.dentz@gmail.com, marcel@holtmann.org
Cc: chromeos-bluetooth-upstreaming@chromium.org,
	linux-bluetooth@vger.kernel.org,
	Abhishek Pandit-Subedi <abhishekpandit@chromium.org>,
	Sonny Sasaka <sonnysasaka@chromium.org>
Subject: [Bluez PATCH v2 1/3] mgmt: Add controller suspend and resume events
Date: Tue, 18 Aug 2020 16:28:20 -0700	[thread overview]
Message-ID: <20200818162807.Bluez.v2.1.I14a96397d181666c124e1c413b834428faf3db7a@changeid> (raw)
In-Reply-To: <20200818232822.1645054-1-abhishekpandit@chromium.org>

Add the controller suspend and resume events.

Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
---

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.297.g1956fa8f8d-goog


  reply	other threads:[~2020-08-18 23:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-18 23:28 [Bluez PATCH v2 0/3] adapter: Reconnect audio when resuming from suspend Abhishek Pandit-Subedi
2020-08-18 23:28 ` Abhishek Pandit-Subedi [this message]
2020-08-18 23:28 ` [Bluez PATCH v2 2/3] monitor: Add btmon support for Suspend and Resume events Abhishek Pandit-Subedi
2020-08-18 23:28 ` [Bluez PATCH v2 3/3] policy: Reconnect audio on controller resume Abhishek Pandit-Subedi
2020-08-27  6:32   ` Luiz Augusto von Dentz
2020-08-27 21:08     ` Abhishek Pandit-Subedi
2020-08-28 17:08       ` Luiz Augusto von Dentz
2020-08-28 17:31         ` Abhishek Pandit-Subedi
2020-08-28 17:56           ` Luiz Augusto von Dentz
2020-08-28 23:40             ` Abhishek Pandit-Subedi
2020-08-26 17:41 ` [Bluez PATCH v2 0/3] adapter: Reconnect audio when resuming from suspend Abhishek Pandit-Subedi
2020-08-27  6:20   ` Luiz Augusto von Dentz
2020-08-27 21:13     ` Abhishek Pandit-Subedi
2020-08-27 21:18       ` Abhishek Pandit-Subedi
2020-08-28 17:22       ` Luiz Augusto von Dentz
2020-08-28 17:38         ` Abhishek Pandit-Subedi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200818162807.Bluez.v2.1.I14a96397d181666c124e1c413b834428faf3db7a@changeid \
    --to=abhishekpandit@chromium.org \
    --cc=chromeos-bluetooth-upstreaming@chromium.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=sonnysasaka@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.