* [PATCH] Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM
@ 2026-01-12 10:51 Bastien Nocera
2026-01-12 11:18 ` Paul Menzel
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bastien Nocera @ 2026-01-12 10:51 UTC (permalink / raw)
To: linux-bluetooth
This increases build coverage and allows to drop an #ifdef.
Signed-off-by: Bastien Nocera <hadess@hadess.net>
---
drivers/bluetooth/btusb.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 8ed3883ab8ee..539e93227b5c 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -4627,10 +4627,8 @@ static struct usb_driver btusb_driver = {
.name = "btusb",
.probe = btusb_probe,
.disconnect = btusb_disconnect,
-#ifdef CONFIG_PM
- .suspend = btusb_suspend,
- .resume = btusb_resume,
-#endif
+ .suspend = pm_ptr(btusb_suspend),
+ .resume = pm_ptr(btusb_resume),
.id_table = btusb_table,
.supports_autosuspend = 1,
.disable_hub_initiated_lpm = 1,
--
2.52.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM
2026-01-12 10:51 [PATCH] Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM Bastien Nocera
@ 2026-01-12 11:18 ` Paul Menzel
2026-01-12 11:38 ` bluez.test.bot
2026-01-12 20:57 ` [PATCH] " patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: Paul Menzel @ 2026-01-12 11:18 UTC (permalink / raw)
To: Bastien Nocera; +Cc: linux-bluetooth
Dear Bastian,
Thank you for your patch.
Am 12.01.26 um 11:51 schrieb Bastien Nocera:
> This increases build coverage and allows to drop an #ifdef.
>
> Signed-off-by: Bastien Nocera <hadess@hadess.net>
> ---
> drivers/bluetooth/btusb.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index 8ed3883ab8ee..539e93227b5c 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -4627,10 +4627,8 @@ static struct usb_driver btusb_driver = {
> .name = "btusb",
> .probe = btusb_probe,
> .disconnect = btusb_disconnect,
> -#ifdef CONFIG_PM
> - .suspend = btusb_suspend,
> - .resume = btusb_resume,
> -#endif
> + .suspend = pm_ptr(btusb_suspend),
> + .resume = pm_ptr(btusb_resume),
> .id_table = btusb_table,
> .supports_autosuspend = 1,
> .disable_hub_initiated_lpm = 1,
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Kind regards,
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM
2026-01-12 10:51 [PATCH] Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM Bastien Nocera
2026-01-12 11:18 ` Paul Menzel
@ 2026-01-12 11:38 ` bluez.test.bot
2026-01-12 20:57 ` [PATCH] " patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2026-01-12 11:38 UTC (permalink / raw)
To: linux-bluetooth, hadess
[-- Attachment #1: Type: text/plain, Size: 2593 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=1041134
---Test result---
Test Summary:
CheckPatch PENDING 0.47 seconds
GitLint PENDING 0.34 seconds
SubjectPrefix PASS 0.06 seconds
BuildKernel PASS 25.16 seconds
CheckAllWarning PASS 28.29 seconds
CheckSparse PASS 31.16 seconds
BuildKernel32 PASS 25.02 seconds
TestRunnerSetup PASS 551.36 seconds
TestRunner_l2cap-tester PASS 28.13 seconds
TestRunner_iso-tester PASS 79.30 seconds
TestRunner_bnep-tester PASS 6.22 seconds
TestRunner_mgmt-tester FAIL 117.50 seconds
TestRunner_rfcomm-tester PASS 9.51 seconds
TestRunner_sco-tester FAIL 14.49 seconds
TestRunner_ioctl-tester PASS 10.15 seconds
TestRunner_mesh-tester FAIL 11.56 seconds
TestRunner_smp-tester PASS 8.60 seconds
TestRunner_userchan-tester PASS 6.84 seconds
IncrementalBuild PENDING 1.01 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.108 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
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.839 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] 4+ messages in thread
* Re: [PATCH] Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM
2026-01-12 10:51 [PATCH] Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM Bastien Nocera
2026-01-12 11:18 ` Paul Menzel
2026-01-12 11:38 ` bluez.test.bot
@ 2026-01-12 20:57 ` patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2026-01-12 20:57 UTC (permalink / raw)
To: Bastien Nocera; +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 Mon, 12 Jan 2026 11:51:13 +0100 you wrote:
> This increases build coverage and allows to drop an #ifdef.
>
> Signed-off-by: Bastien Nocera <hadess@hadess.net>
> ---
> drivers/bluetooth/btusb.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
Here is the summary with links:
- Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM
https://git.kernel.org/bluetooth/bluetooth-next/c/d1e94a4934e8
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] 4+ messages in thread
end of thread, other threads:[~2026-01-12 21:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-12 10:51 [PATCH] Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM Bastien Nocera
2026-01-12 11:18 ` Paul Menzel
2026-01-12 11:38 ` bluez.test.bot
2026-01-12 20:57 ` [PATCH] " 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