Skip to contentSkip to conversation

Bluetooth: hci_sync: Add hci_cmd_sync_queue_once

PATCH RESEND In review Luiz Augusto von Dentz 2 participants 2 messages Feb 13, 2024

Subsystems (2)
lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH RESEND 1/1 Bluetooth: hci_sync: Add hci_cmd_sync_queue_once

From: Luiz Augusto von Dentz <[email protected]>

This adds hci_cmd_sync_queue_once which can be used for callback that shall be schedule only once.

---
 include/net/bluetooth/hci_sync.h |  5 +++
 net/bluetooth/hci_sync.c         | 56 +++++++++++++++++++++++++++-----
 2 files changed, 53 insertions(+), 8 deletions(-)
include/net/bluetooth/hci_sync.h +5 -0
index ed334c253ebc..3f9db5930530 100644
@@ -48,6 +48,11 @@ int hci_cmd_sync_submit(struct hci_dev *hdev, hci_cmd_sync_work_func_t func,
 			void *data, hci_cmd_sync_work_destroy_t destroy);
 int hci_cmd_sync_queue(struct hci_dev *hdev, hci_cmd_sync_work_func_t func,
 		       void *data, hci_cmd_sync_work_destroy_t destroy);
+bool hci_cmd_sync_lookup(struct hci_dev *hdev, hci_cmd_sync_work_func_t func,
+			 void *data, hci_cmd_sync_work_destroy_t destroy,
+			 bool cancel);
+int hci_cmd_sync_queue_once(struct hci_dev *hdev, hci_cmd_sync_work_func_t func,
+			    void *data, hci_cmd_sync_work_destroy_t destroy);
 
 int hci_update_eir_sync(struct hci_dev *hdev);
 int hci_update_class_sync(struct hci_dev *hdev);
net/bluetooth/hci_sync.c +48 -8

80 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw

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=825632

---Test result---

Test Summary:

CheckPatch                    PASS      0.85 seconds
GitLint                       PASS      0.31 seconds
SubjectPrefix                 PASS      0.12 seconds
BuildKernel                   PASS      27.97 seconds
CheckAllWarning               PASS      30.43 seconds
CheckSparse                   PASS      35.59 seconds
CheckSmatch                   PASS      98.06 seconds
BuildKernel32                 PASS      26.91 seconds
TestRunnerSetup               PASS      497.24 seconds
TestRunner_l2cap-tester       PASS      18.20 seconds
TestRunner_iso-tester         PASS      28.35 seconds
TestRunner_bnep-tester        PASS      4.87 seconds
TestRunner_mgmt-tester        FAIL      164.45 seconds
TestRunner_rfcomm-tester      PASS      7.35 seconds
TestRunner_sco-tester         PASS      14.95 seconds
TestRunner_ioctl-tester       PASS      7.78 seconds
TestRunner_mesh-tester        PASS      5.83 seconds
TestRunner_smp-tester         PASS      6.82 seconds
TestRunner_userchan-tester    PASS      5.02 seconds
IncrementalBuild              PASS      25.72 seconds

Details
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner Output:
Total: 492, Passed: 485 (98.6%), Failed: 6, Not Run: 1

Failed Test Cases

LL Privacy - Add Device 5 (2 Devices to RL)          Failed       0.110 seconds
LL Privacy - Add Device 6 (RL is full)               Failed       0.139 seconds
LL Privacy - Add Device 7 (AL is full)               Failed       0.142 seconds
LL Privacy - Remove Device 2 (Remove from RL)        Timed out    1.871 seconds
LL Privacy - Remove Device 4 (Disable Adv)           Timed out    1.846 seconds
LL Privacy - Start Discovery 2 (Disable RL)          Failed       0.114 seconds

---
Regards,
Linux Bluetooth