* [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug
@ 2023-12-26 6:08 clancy_shang
2023-12-26 6:35 ` bluez.test.bot
2023-12-26 15:40 ` [PATCH] " Luiz Augusto von Dentz
0 siblings, 2 replies; 6+ messages in thread
From: clancy_shang @ 2023-12-26 6:08 UTC (permalink / raw)
To: marcel, johan.hedberg, luiz.dentz
Cc: linux-bluetooth, linux-kernel, zhongjun.yu, Clancy Shang
From: Clancy Shang <clancy.shang@quectel.com>
when Bluetooth enters suspend, and disconnects everything with the
disconnect reason code of 0x15, the hogp device could not into sleep
and continued advertising. when use the disconnect reason code of 0x13,
the hogp device going into sleep succeeded.
Signed-off-by: Clancy Shang <clancy.shang@quectel.com>
---
net/bluetooth/hci_sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index d85a7091a116..16b5420c32d0 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -5927,7 +5927,7 @@ int hci_suspend_sync(struct hci_dev *hdev)
if (hci_conn_count(hdev)) {
/* Soft disconnect everything (power off) */
- err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_POWER_OFF);
+ err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_USER_TERM);
if (err) {
/* Set state to BT_RUNNING so resume doesn't notify */
hdev->suspend_state = BT_RUNNING;
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* RE: Bluetooth: hci_sync: fix hogp device suspend bug
2023-12-26 6:08 [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug clancy_shang
@ 2023-12-26 6:35 ` bluez.test.bot
2023-12-26 15:40 ` [PATCH] " Luiz Augusto von Dentz
1 sibling, 0 replies; 6+ messages in thread
From: bluez.test.bot @ 2023-12-26 6:35 UTC (permalink / raw)
To: linux-bluetooth, clancy_shang
[-- Attachment #1: Type: text/plain, Size: 1422 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=812856
---Test result---
Test Summary:
CheckPatch PASS 0.70 seconds
GitLint PASS 0.31 seconds
SubjectPrefix PASS 0.11 seconds
BuildKernel PASS 27.89 seconds
CheckAllWarning PASS 30.38 seconds
CheckSparse PASS 35.87 seconds
CheckSmatch PASS 99.92 seconds
BuildKernel32 PASS 27.69 seconds
TestRunnerSetup PASS 431.83 seconds
TestRunner_l2cap-tester PASS 24.93 seconds
TestRunner_iso-tester PASS 47.13 seconds
TestRunner_bnep-tester PASS 6.90 seconds
TestRunner_mgmt-tester PASS 159.28 seconds
TestRunner_rfcomm-tester PASS 10.89 seconds
TestRunner_sco-tester PASS 14.29 seconds
TestRunner_ioctl-tester PASS 11.97 seconds
TestRunner_mesh-tester PASS 8.68 seconds
TestRunner_smp-tester PASS 9.60 seconds
TestRunner_userchan-tester PASS 7.19 seconds
IncrementalBuild PASS 25.94 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug
2023-12-26 6:08 [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug clancy_shang
2023-12-26 6:35 ` bluez.test.bot
@ 2023-12-26 15:40 ` Luiz Augusto von Dentz
[not found] ` <6358e9a9.6c6.18ca8e3e1cf.Coremail.clancy_shang@163.com>
1 sibling, 1 reply; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2023-12-26 15:40 UTC (permalink / raw)
To: clancy_shang
Cc: marcel, johan.hedberg, linux-bluetooth, linux-kernel, zhongjun.yu,
Clancy Shang
Hi Clancy,
On Tue, Dec 26, 2023 at 1:09 AM <clancy_shang@163.com> wrote:
>
> From: Clancy Shang <clancy.shang@quectel.com>
>
> when Bluetooth enters suspend, and disconnects everything with the
> disconnect reason code of 0x15, the hogp device could not into sleep
> and continued advertising. when use the disconnect reason code of 0x13,
> the hogp device going into sleep succeeded.
>
> Signed-off-by: Clancy Shang <clancy.shang@quectel.com>
> ---
> net/bluetooth/hci_sync.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
> index d85a7091a116..16b5420c32d0 100644
> --- a/net/bluetooth/hci_sync.c
> +++ b/net/bluetooth/hci_sync.c
> @@ -5927,7 +5927,7 @@ int hci_suspend_sync(struct hci_dev *hdev)
>
> if (hci_conn_count(hdev)) {
> /* Soft disconnect everything (power off) */
> - err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_POWER_OFF);
> + err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_USER_TERM);
So the device interpretes that it can reconnect on power off but not
on user termination error? And you think changing the error would make
this interoperate any better? Afaik user termination can be generated
by various reasons, including the non-clean termination ones, while
power off error is quite clear on the reason, so instead of using a
more generic error you probably should contact the device manufacturer
and have it fix this problem and until then Id probably disable wakeup
support since it doesn't behave properly when receiving
HCI_ERROR_REMOTE_POWER_OFF.
> if (err) {
> /* Set state to BT_RUNNING so resume doesn't notify */
> hdev->suspend_state = BT_RUNNING;
> --
> 2.25.1
>
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug
@ 2024-01-03 10:12 clancy_shang
2024-01-03 13:11 ` bluez.test.bot
0 siblings, 1 reply; 6+ messages in thread
From: clancy_shang @ 2024-01-03 10:12 UTC (permalink / raw)
To: marcel, johan.hedberg, luiz.dentz
Cc: linux-bluetooth, linux-kernel, zhongjun.yu, Clancy Shang
From: Clancy Shang <clancy.shang@quectel.com>
when Bluetooth enters suspend, and disconnects everything with the
disconnect reason code of 0x15, the hogp device could not into sleep
and continued advertising. when use the disconnect reason code of 0x13,
the hogp device going into sleep succeeded.
Signed-off-by: Clancy Shang <clancy.shang@quectel.com>
---
net/bluetooth/hci_sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index d85a7091a116..16b5420c32d0 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -5927,7 +5927,7 @@ int hci_suspend_sync(struct hci_dev *hdev)
if (hci_conn_count(hdev)) {
/* Soft disconnect everything (power off) */
- err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_POWER_OFF);
+ err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_USER_TERM);
if (err) {
/* Set state to BT_RUNNING so resume doesn't notify */
hdev->suspend_state = BT_RUNNING;
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* RE: Bluetooth: hci_sync: fix hogp device suspend bug
2024-01-03 10:12 clancy_shang
@ 2024-01-03 13:11 ` bluez.test.bot
0 siblings, 0 replies; 6+ messages in thread
From: bluez.test.bot @ 2024-01-03 13:11 UTC (permalink / raw)
To: linux-bluetooth, clancy_shang
[-- Attachment #1: Type: text/plain, Size: 1423 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=814095
---Test result---
Test Summary:
CheckPatch PASS 0.45 seconds
GitLint PASS 0.22 seconds
SubjectPrefix PASS 0.07 seconds
BuildKernel PASS 28.56 seconds
CheckAllWarning PASS 31.37 seconds
CheckSparse PASS 36.98 seconds
CheckSmatch PASS 100.39 seconds
BuildKernel32 PASS 27.91 seconds
TestRunnerSetup PASS 449.38 seconds
TestRunner_l2cap-tester PASS 23.23 seconds
TestRunner_iso-tester PASS 45.94 seconds
TestRunner_bnep-tester PASS 7.05 seconds
TestRunner_mgmt-tester PASS 165.04 seconds
TestRunner_rfcomm-tester PASS 11.40 seconds
TestRunner_sco-tester PASS 15.00 seconds
TestRunner_ioctl-tester PASS 12.09 seconds
TestRunner_mesh-tester PASS 8.86 seconds
TestRunner_smp-tester PASS 9.72 seconds
TestRunner_userchan-tester PASS 7.27 seconds
IncrementalBuild PASS 26.70 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug
@ 2023-12-21 7:16 15013537245
2023-12-21 7:57 ` bluez.test.bot
0 siblings, 1 reply; 6+ messages in thread
From: 15013537245 @ 2023-12-21 7:16 UTC (permalink / raw)
To: marcel, johan.hedberg, luiz.dentz
Cc: linux-bluetooth, linux-kernel, zhongjun.yu, clancy shang
From: clancy shang <clancy.shang@quectel.com>
when Bluetooth enter suspend, and disconnect everything with the diconnect
reason code of 0x15,the hogp device could not into sleep and continued
advertizing. when use the diconnect reason code of 0x13, the hogp device
into sleep succeeded.
Signed-off-by: clancy shang <clancy.shang@quectel.com>
---
net/bluetooth/hci_sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index d85a7091a116..16b5420c32d0 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -5927,7 +5927,7 @@ int hci_suspend_sync(struct hci_dev *hdev)
if (hci_conn_count(hdev)) {
/* Soft disconnect everything (power off) */
- err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_POWER_OFF);
+ err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_USER_TERM);
if (err) {
/* Set state to BT_RUNNING so resume doesn't notify */
hdev->suspend_state = BT_RUNNING;
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* RE: Bluetooth: hci_sync: fix hogp device suspend bug
2023-12-21 7:16 [PATCH] " 15013537245
@ 2023-12-21 7:57 ` bluez.test.bot
0 siblings, 0 replies; 6+ messages in thread
From: bluez.test.bot @ 2023-12-21 7:57 UTC (permalink / raw)
To: linux-bluetooth, 15013537245
[-- Attachment #1: Type: text/plain, Size: 1422 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=812044
---Test result---
Test Summary:
CheckPatch PASS 0.60 seconds
GitLint PASS 0.31 seconds
SubjectPrefix PASS 0.12 seconds
BuildKernel PASS 27.78 seconds
CheckAllWarning PASS 31.72 seconds
CheckSparse PASS 36.19 seconds
CheckSmatch PASS 99.56 seconds
BuildKernel32 PASS 26.97 seconds
TestRunnerSetup PASS 434.45 seconds
TestRunner_l2cap-tester PASS 23.27 seconds
TestRunner_iso-tester PASS 49.50 seconds
TestRunner_bnep-tester PASS 7.21 seconds
TestRunner_mgmt-tester PASS 163.68 seconds
TestRunner_rfcomm-tester PASS 11.03 seconds
TestRunner_sco-tester PASS 14.72 seconds
TestRunner_ioctl-tester PASS 12.25 seconds
TestRunner_mesh-tester PASS 8.94 seconds
TestRunner_smp-tester PASS 9.87 seconds
TestRunner_userchan-tester PASS 7.44 seconds
IncrementalBuild PASS 26.14 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-03 13:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 6:08 [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug clancy_shang
2023-12-26 6:35 ` bluez.test.bot
2023-12-26 15:40 ` [PATCH] " Luiz Augusto von Dentz
[not found] ` <6358e9a9.6c6.18ca8e3e1cf.Coremail.clancy_shang@163.com>
2023-12-27 16:47 ` Luiz Augusto von Dentz
-- strict thread matches above, loose matches on Subject: below --
2024-01-03 10:12 clancy_shang
2024-01-03 13:11 ` bluez.test.bot
2023-12-21 7:16 [PATCH] " 15013537245
2023-12-21 7:57 ` bluez.test.bot
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.