* [PATCH v1] Bluetooth: btintel_pcie: Define hdev->wakeup() callback
@ 2025-07-31 11:17 Kiran K
2025-07-31 11:35 ` [v1] " bluez.test.bot
2025-08-01 16:10 ` [PATCH v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Kiran K @ 2025-07-31 11:17 UTC (permalink / raw)
To: linux-bluetooth; +Cc: ravishankar.srivatsa, chandrashekar.devegowda, Kiran K
From: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
Implement hdev->wakeup() callback to support Wake On BT feature.
Test steps:
1. echo enabled > /sys/bus/pci/devices/0000:00:14.7/power/wakeup
2. connect bluetooth hid device
3. put the system to suspend - rtcwake -m mem -s 300
4. press any key on hid to wake up the system
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
---
drivers/bluetooth/btintel_pcie.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
index ce17c5ea67e8..22a2953adbd6 100644
--- a/drivers/bluetooth/btintel_pcie.c
+++ b/drivers/bluetooth/btintel_pcie.c
@@ -2416,6 +2416,13 @@ static void btintel_pcie_hw_error(struct hci_dev *hdev, u8 code)
btintel_pcie_reset(hdev);
}
+static bool btintel_pcie_wakeup(struct hci_dev *hdev)
+{
+ struct btintel_pcie_data *data = hci_get_drvdata(hdev);
+
+ return device_may_wakeup(&data->pdev->dev);
+}
+
static int btintel_pcie_setup_hdev(struct btintel_pcie_data *data)
{
int err;
@@ -2441,6 +2448,7 @@ static int btintel_pcie_setup_hdev(struct btintel_pcie_data *data)
hdev->set_diag = btintel_set_diag;
hdev->set_bdaddr = btintel_set_bdaddr;
hdev->reset = btintel_pcie_reset;
+ hdev->wakeup = btintel_pcie_wakeup;
err = hci_register_dev(hdev);
if (err < 0) {
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [v1] Bluetooth: btintel_pcie: Define hdev->wakeup() callback
2025-07-31 11:17 [PATCH v1] Bluetooth: btintel_pcie: Define hdev->wakeup() callback Kiran K
@ 2025-07-31 11:35 ` bluez.test.bot
2025-08-01 16:10 ` [PATCH v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-07-31 11:35 UTC (permalink / raw)
To: linux-bluetooth, kiran.k
[-- Attachment #1: Type: text/plain, Size: 2028 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=987331
---Test result---
Test Summary:
CheckPatch PENDING 0.40 seconds
GitLint PENDING 0.32 seconds
SubjectPrefix PASS 0.07 seconds
BuildKernel PASS 25.31 seconds
CheckAllWarning PASS 27.56 seconds
CheckSparse PASS 31.00 seconds
BuildKernel32 PASS 24.33 seconds
TestRunnerSetup PASS 485.25 seconds
TestRunner_l2cap-tester PASS 25.36 seconds
TestRunner_iso-tester PASS 39.63 seconds
TestRunner_bnep-tester PASS 6.16 seconds
TestRunner_mgmt-tester PASS 127.48 seconds
TestRunner_rfcomm-tester PASS 9.87 seconds
TestRunner_sco-tester PASS 14.67 seconds
TestRunner_ioctl-tester PASS 10.15 seconds
TestRunner_mesh-tester FAIL 11.39 seconds
TestRunner_smp-tester PASS 8.65 seconds
TestRunner_userchan-tester PASS 6.36 seconds
IncrementalBuild PENDING 0.72 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 1.908 seconds
Mesh - Send cancel - 2 Timed out 1.996 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] Bluetooth: btintel_pcie: Define hdev->wakeup() callback
2025-07-31 11:17 [PATCH v1] Bluetooth: btintel_pcie: Define hdev->wakeup() callback Kiran K
2025-07-31 11:35 ` [v1] " bluez.test.bot
@ 2025-08-01 16:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-08-01 16:10 UTC (permalink / raw)
To: Kiran K; +Cc: linux-bluetooth, ravishankar.srivatsa, chandrashekar.devegowda
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 31 Jul 2025 16:47:11 +0530 you wrote:
> From: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
>
> Implement hdev->wakeup() callback to support Wake On BT feature.
>
> Test steps:
> 1. echo enabled > /sys/bus/pci/devices/0000:00:14.7/power/wakeup
> 2. connect bluetooth hid device
> 3. put the system to suspend - rtcwake -m mem -s 300
> 4. press any key on hid to wake up the system
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: btintel_pcie: Define hdev->wakeup() callback
https://git.kernel.org/bluetooth/bluetooth-next/c/df18778595f9
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:[~2025-08-01 16:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31 11:17 [PATCH v1] Bluetooth: btintel_pcie: Define hdev->wakeup() callback Kiran K
2025-07-31 11:35 ` [v1] " bluez.test.bot
2025-08-01 16:10 ` [PATCH 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