* [PATCH BlueZ v1] lib: Add IPC bus type
@ 2024-11-06 14:51 Luiz Augusto von Dentz
2024-11-06 16:45 ` [BlueZ,v1] " bluez.test.bot
2024-11-06 20:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2024-11-06 14:51 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Zephyr(1) has been using the same bus defines as Linux so tools likes of
btmon, etc, are able to decode the bus under HCI, so this attempts to
synchronize the definitions by adding the missing bus type IPC(11) and its
decoding string.
[1] https://github.com/zephyrproject-rtos/zephyr/pull/80808
---
doc/mgmt-api.txt | 1 +
lib/hci.c | 2 ++
lib/hci.h | 1 +
src/shared/btsnoop.h | 2 ++
4 files changed, 6 insertions(+)
diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 59e61d361dc2..01a23526a4ef 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -2500,6 +2500,7 @@ Read Extended Controller Index List Command
0x08 I2C
0x09 SMD
0x0A VIRTIO
+ 0x0B IPC
Controllers marked as RAW only operation are currently not listed
by this command.
diff --git a/lib/hci.c b/lib/hci.c
index 937e65d48aa5..acf63f182953 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -152,6 +152,8 @@ const char *hci_bustostr(int bus)
return "SMD";
case HCI_VIRTIO:
return "VIRTIO";
+ case HCI_IPC:
+ return "IPC";
default:
return "Unknown";
}
diff --git a/lib/hci.h b/lib/hci.h
index 50f385c1ebf7..c39a72cefa9b 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -47,6 +47,7 @@ extern "C" {
#define HCI_I2C 8
#define HCI_SMD 9
#define HCI_VIRTIO 10
+#define HCI_IPC 11
/* HCI controller types */
#define HCI_PRIMARY 0x00
diff --git a/src/shared/btsnoop.h b/src/shared/btsnoop.h
index 80f0d5d8209c..c24755d56729 100644
--- a/src/shared/btsnoop.h
+++ b/src/shared/btsnoop.h
@@ -58,6 +58,8 @@
#define BTSNOOP_BUS_SPI 7
#define BTSNOOP_BUS_I2C 8
#define BTSNOOP_BUS_SMD 9
+#define BTSNOOP_BUS_VIRTIO 10
+#define BTSNOOP_BUS_IPC 11
struct btsnoop_opcode_new_index {
uint8_t type;
--
2.47.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ,v1] lib: Add IPC bus type
2024-11-06 14:51 [PATCH BlueZ v1] lib: Add IPC bus type Luiz Augusto von Dentz
@ 2024-11-06 16:45 ` bluez.test.bot
2024-11-06 20:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-11-06 16:45 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=906986
---Test result---
Test Summary:
CheckPatch PASS 0.30 seconds
GitLint PASS 0.22 seconds
BuildEll PASS 24.76 seconds
BluezMake PASS 1678.61 seconds
MakeCheck PASS 12.82 seconds
MakeDistcheck PASS 181.02 seconds
CheckValgrind PASS 253.62 seconds
CheckSmatch PASS 357.36 seconds
bluezmakeextell PASS 120.97 seconds
IncrementalBuild PASS 1596.93 seconds
ScanBuild PASS 1024.64 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ v1] lib: Add IPC bus type
2024-11-06 14:51 [PATCH BlueZ v1] lib: Add IPC bus type Luiz Augusto von Dentz
2024-11-06 16:45 ` [BlueZ,v1] " bluez.test.bot
@ 2024-11-06 20:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-11-06 20:10 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Wed, 6 Nov 2024 09:51:00 -0500 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> Zephyr(1) has been using the same bus defines as Linux so tools likes of
> btmon, etc, are able to decode the bus under HCI, so this attempts to
> synchronize the definitions by adding the missing bus type IPC(11) and its
> decoding string.
>
> [...]
Here is the summary with links:
- [BlueZ,v1] lib: Add IPC bus type
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=0025cdd0c103
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-06 20:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 14:51 [PATCH BlueZ v1] lib: Add IPC bus type Luiz Augusto von Dentz
2024-11-06 16:45 ` [BlueZ,v1] " bluez.test.bot
2024-11-06 20:10 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).