* [RESEND] Bluetooth: btusb: Don't suspend when there are connections @ 2023-11-21 21:31 Luiz Augusto von Dentz 2023-11-21 22:32 ` bluez.test.bot 2023-11-22 17:40 ` patchwork-bot+bluetooth 0 siblings, 2 replies; 3+ messages in thread From: Luiz Augusto von Dentz @ 2023-11-21 21:31 UTC (permalink / raw) To: linux-bluetooth From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This checks if there are connections before suspending since that may disrupt the connections making it stop receiving any data if remote wakeup is not enabled. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> --- drivers/bluetooth/btusb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index b8e9de887b5d..0926e4451802 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -4629,6 +4629,10 @@ static int btusb_suspend(struct usb_interface *intf, pm_message_t message) BT_DBG("intf %p", intf); + /* Don't suspend if there are connections */ + if (hci_conn_count(data->hdev)) + return -EBUSY; + if (data->suspend_count++) return 0; -- 2.42.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [RESEND] Bluetooth: btusb: Don't suspend when there are connections 2023-11-21 21:31 [RESEND] Bluetooth: btusb: Don't suspend when there are connections Luiz Augusto von Dentz @ 2023-11-21 22:32 ` bluez.test.bot 2023-11-22 17:40 ` patchwork-bot+bluetooth 1 sibling, 0 replies; 3+ messages in thread From: bluez.test.bot @ 2023-11-21 22:32 UTC (permalink / raw) To: linux-bluetooth, luiz.dentz [-- 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=803013 ---Test result--- Test Summary: CheckPatch PASS 0.60 seconds GitLint PASS 0.31 seconds SubjectPrefix PASS 0.11 seconds BuildKernel PASS 28.22 seconds CheckAllWarning PASS 30.62 seconds CheckSparse PASS 36.15 seconds CheckSmatch PASS 100.30 seconds BuildKernel32 PASS 27.14 seconds TestRunnerSetup PASS 416.53 seconds TestRunner_l2cap-tester PASS 23.34 seconds TestRunner_iso-tester PASS 42.66 seconds TestRunner_bnep-tester PASS 6.86 seconds TestRunner_mgmt-tester PASS 165.18 seconds TestRunner_rfcomm-tester PASS 10.83 seconds TestRunner_sco-tester PASS 15.69 seconds TestRunner_ioctl-tester PASS 12.07 seconds TestRunner_mesh-tester PASS 9.04 seconds TestRunner_smp-tester PASS 9.86 seconds TestRunner_userchan-tester PASS 7.35 seconds IncrementalBuild PASS 25.95 seconds --- Regards, Linux Bluetooth ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RESEND] Bluetooth: btusb: Don't suspend when there are connections 2023-11-21 21:31 [RESEND] Bluetooth: btusb: Don't suspend when there are connections Luiz Augusto von Dentz 2023-11-21 22:32 ` bluez.test.bot @ 2023-11-22 17:40 ` patchwork-bot+bluetooth 1 sibling, 0 replies; 3+ messages in thread From: patchwork-bot+bluetooth @ 2023-11-22 17:40 UTC (permalink / raw) To: Luiz Augusto von Dentz; +Cc: linux-bluetooth Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Tue, 21 Nov 2023 16:31:59 -0500 you wrote: > From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> > > This checks if there are connections before suspending since that may > disrupt the connections making it stop receiving any data if remote > wakeup is not enabled. > > Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> > > [...] Here is the summary with links: - [RESEND] Bluetooth: btusb: Don't suspend when there are connections https://git.kernel.org/bluetooth/bluetooth-next/c/d4a9d62c7f82 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:[~2023-11-22 17:40 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-11-21 21:31 [RESEND] Bluetooth: btusb: Don't suspend when there are connections Luiz Augusto von Dentz 2023-11-21 22:32 ` bluez.test.bot 2023-11-22 17:40 ` 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