2022-10-13 21:46:57

by Zhengping Jiang

[permalink] [raw]
Subject: [PATCH v1 0/1] Bluetooth: hci_qca: only assign wakeup with serial port support


This patch will check if the serial port supports wakeup before assigning
the hdev->wakeup callback. After landing the 'commit c1a74160eaf1a
("Bluetooth: hci_qca: Add device_may_wakeup support")', the wake-on-bt
was broken in Jacuzzi because the qca_wakeup returns false. In this case
it will fall back to the default hci_uart_wakeup.

Changes in v1:
- Check serial port support before assigning wakeup callback

Zhengping Jiang (1):
Bluetooth: hci_qca: only assign wakeup with serial port support

drivers/bluetooth/hci_qca.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--
2.38.0.413.g74048e4d9e-goog


2022-10-13 21:48:09

by Zhengping Jiang

[permalink] [raw]
Subject: [PATCH v1 1/1] Bluetooth: hci_qca: only assign wakeup with serial port support

Only assign hdev->wakeup if the serial port supports wakeup. Otherwise
it will fall back to the hci_uart_wakeup or the behavior that can be
overridden before calling the hci_uart_register_device().

Signed-off-by: Zhengping Jiang <[email protected]>
---

Changes in v1:
- Check serial port support before assigning wakeup callback

drivers/bluetooth/hci_qca.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 8df11016fd51..dacb6f5efd29 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -1765,7 +1765,8 @@ static int qca_setup(struct hci_uart *hu)
qca_debugfs_init(hdev);
hu->hdev->hw_error = qca_hw_error;
hu->hdev->cmd_timeout = qca_cmd_timeout;
- hu->hdev->wakeup = qca_wakeup;
+ if (device_can_wakeup(hu->serdev->ctrl->dev.parent))
+ hu->hdev->wakeup = qca_wakeup;
} else if (ret == -ENOENT) {
/* No patch/nvm-config found, run with original fw/config */
set_bit(QCA_ROM_FW, &qca->flags);
--
2.38.0.413.g74048e4d9e-goog

2022-10-13 22:20:18

by bluez.test.bot

[permalink] [raw]
Subject: RE: Bluetooth: hci_qca: only assign wakeup with serial port support

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

---Test result---

Test Summary:
CheckPatch PASS 1.25 seconds
GitLint PASS 0.74 seconds
SubjectPrefix PASS 0.62 seconds
BuildKernel PASS 34.78 seconds
BuildKernel32 PASS 30.82 seconds
Incremental Build with patchesPASS 43.19 seconds
TestRunner: Setup PASS 516.57 seconds
TestRunner: l2cap-tester PASS 17.46 seconds
TestRunner: iso-tester PASS 16.66 seconds
TestRunner: bnep-tester PASS 6.55 seconds
TestRunner: mgmt-tester PASS 107.54 seconds
TestRunner: rfcomm-tester PASS 10.42 seconds
TestRunner: sco-tester PASS 9.87 seconds
TestRunner: ioctl-tester PASS 11.18 seconds
TestRunner: mesh-tester PASS 8.18 seconds
TestRunner: smp-tester PASS 9.89 seconds
TestRunner: userchan-tester PASS 6.85 seconds



---
Regards,
Linux Bluetooth

2022-10-13 22:38:17

by patchwork-bot+bluetooth

[permalink] [raw]
Subject: Re: [PATCH v1 0/1] Bluetooth: hci_qca: only assign wakeup with serial port support

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <[email protected]>:

On Thu, 13 Oct 2022 14:45:07 -0700 you wrote:
> This patch will check if the serial port supports wakeup before assigning
> the hdev->wakeup callback. After landing the 'commit c1a74160eaf1a
> ("Bluetooth: hci_qca: Add device_may_wakeup support")', the wake-on-bt
> was broken in Jacuzzi because the qca_wakeup returns false. In this case
> it will fall back to the default hci_uart_wakeup.
>
> Changes in v1:
> - Check serial port support before assigning wakeup callback
>
> [...]

Here is the summary with links:
- [v1,1/1] Bluetooth: hci_qca: only assign wakeup with serial port support
https://git.kernel.org/bluetooth/bluetooth-next/c/9fe208c7117d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html